diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index d3388972..1c5f90e1 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -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() diff --git a/changedetectionio/templates/watch-overview.html b/changedetectionio/templates/watch-overview.html index 1d0fef8a..142b1302 100644 --- a/changedetectionio/templates/watch-overview.html +++ b/changedetectionio/templates/watch-overview.html @@ -37,6 +37,7 @@ +