Fix modification time for not-created-yet collections
This commit is contained in:
		| @@ -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): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Guillaume Ayoub
					Guillaume Ayoub