Skip to content

Commit

Permalink
UI - "With errors" tag/button should always show the current tag erro…
Browse files Browse the repository at this point in the history
…r count
  • Loading branch information
dgtlmoon committed Oct 26, 2023
1 parent c372942 commit 71e5056
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions changedetectionio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,12 @@ def index():
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)
Expand Down

0 comments on commit 71e5056

Please sign in to comment.