From 71e50569a0a2d073bfcf29cb2c9795a3089da775 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 26 Oct 2023 19:42:48 +0200 Subject: [PATCH] UI - "With errors" tag/button should always show the current tag error count --- changedetectionio/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 8e2b03f8..05a15adc 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -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)