mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-28 19:40:54 +00:00
Explicitely create collections on GET requests
This commit is contained in:
parent
128a20714b
commit
22e4e3764c
3 changed files with 16 additions and 5 deletions
|
@ -96,10 +96,6 @@ class Collection(ical.Collection):
|
|||
|
||||
@property
|
||||
def last_modified(self):
|
||||
# Create collection if needed
|
||||
if not os.path.exists(self._path):
|
||||
self.write()
|
||||
|
||||
modification_time = time.gmtime(os.path.getmtime(self._path))
|
||||
return time.strftime("%a, %d %b %Y %H:%M:%S +0000", modification_time)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue