UI - "With errors" tag/button should always show the current tag error count

pull/1902/head
dgtlmoon 2023-10-26 19:42:48 +02:00
rodzic c372942295
commit 71e50569a0
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -422,11 +422,12 @@ def changedetection_app(config=None, datastore_o=None):
for uuid, watch in datastore.data['watching'].items():
if with_errors and not watch.get('last_error'):
continue
if watch.get('last_error'):
errored_count += 1
if limit_tag and not limit_tag in watch['tags']:
continue
if watch.get('last_error'):
errored_count += 1
if search_q:
if (watch.get('title') and search_q in watch.get('title').lower()) or search_q in watch.get('url', '').lower():
sorted_watches.append(watch)