UI - Overview list shortcut button - Ability to reset any previous errors

This commit is contained in:
dgtlmoon
2024-03-06 19:16:13 +01:00
parent 8b8ed58f20
commit de776800e9
2 changed files with 8 additions and 0 deletions

View File

@@ -1427,6 +1427,13 @@ def changedetection_app(config=None, datastore_o=None):
update_q.put(queuedWatchMetaData.PrioritizedItem(priority=1, item={'uuid': uuid, 'skip_when_checksum_same': False}))
flash("{} watches queued for rechecking".format(len(uuids)))
elif (op == 'clear-errors'):
for uuid in uuids:
uuid = uuid.strip()
if datastore.data['watching'].get(uuid):
datastore.data['watching'][uuid]["last_error"] = False
flash(f"{len(uuids)} watches errors cleared")
elif (op == 'clear-history'):
for uuid in uuids:
uuid = uuid.strip()