mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Fix modification time for not-created-yet collections
This commit is contained in:
parent
406bb6e8cc
commit
5c4fb8529d
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ class Collection(ical.Collection):
|
|||
def _modification_time(self):
|
||||
return (
|
||||
self.session.query(func.max(DBLine.timestamp))
|
||||
.join(DBItem).filter_by(collection_path=self.path).first())[0]
|
||||
.join(DBItem).filter_by(collection_path=self.path).first()[0]
|
||||
or datetime.now())
|
||||
|
||||
@property
|
||||
def _db_collection(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue