UI - Set selected watches as 'viewed' (#1550)

This commit is contained in:
dgtlmoon
2023-04-29 19:20:19 +02:00
committed by GitHub
parent e7ac356d99
commit 966600d28e
2 changed files with 8 additions and 0 deletions

View File

@@ -1277,6 +1277,13 @@ def changedetection_app(config=None, datastore_o=None):
datastore.data['watching'][uuid.strip()]['paused'] = False
flash("{} watches unpaused".format(len(uuids)))
elif (op == 'mark-viewed'):
for uuid in uuids:
uuid = uuid.strip()
if datastore.data['watching'].get(uuid):
datastore.set_last_viewed(uuid, int(time.time()))
flash("{} watches updated".format(len(uuids)))
elif (op == 'mute'):
for uuid in uuids:
uuid = uuid.strip()