mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-10-25 16:18:32 +00:00
Catch possible crash scenario for listing watches - date_created was missing on add (#1787)
This commit is contained in:
1 parent
22b2068208
commit
212f15ad5f
1 file changed
+3
@@ -327,6 +327,9 @@ class ChangeDetectionStore:
|
||||
if k in apply_extras:
|
||||
del apply_extras[k]
|
||||
|
||||
if not apply_extras.get('date_created'):
|
||||
apply_extras['date_created'] = int(time.time())
|
||||
|
||||
new_watch.update(apply_extras)
|
||||
new_watch.ensure_data_dir_exists()
|
||||
self.__data['watching'][new_uuid] = new_watch
|
||||
|
||||
Reference in new issue
Block a user