Fix modification time for not-created-yet collections
This commit is contained in:
parent
406bb6e8cc
commit
5c4fb8529d
@ -118,7 +118,8 @@ class Collection(ical.Collection):
|
|||||||
def _modification_time(self):
|
def _modification_time(self):
|
||||||
return (
|
return (
|
||||||
self.session.query(func.max(DBLine.timestamp))
|
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
|
@property
|
||||||
def _db_collection(self):
|
def _db_collection(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user