Remove 'last-changed' from url-watches.json and always calculate from history index (#835)

This commit is contained in:
dgtlmoon
2022-08-15 21:14:18 +02:00
committed by GitHub
parent 9942107016
commit 1c08d9f150
6 changed files with 20 additions and 20 deletions

View File

@@ -264,8 +264,6 @@ class update_worker(threading.Thread):
# Notifications should only trigger on the second time (first time, we gather the initial snapshot)
if watch.history_n >= 2:
# Atleast 2, means there really was a change
self.datastore.update_watch(uuid=uuid, update_obj={'last_changed': round(now)})
if not self.datastore.data['watching'][uuid].get('notification_muted'):
self.send_content_changed_notification(self, watch_uuid=uuid)