UI - Live preview - misc improvements (Adding test, fixes to filters) (#2663)

This commit is contained in:
dgtlmoon
2024-09-30 13:54:35 +02:00
committed by GitHub
parent 1b625dc18a
commit 5b34aece96
6 changed files with 19 additions and 10 deletions

View File

@@ -491,6 +491,8 @@ class update_worker(threading.Thread):
if not self.datastore.data['watching'].get(uuid):
continue
update_obj['content-type'] = update_handler.fetcher.get_all_headers().get('content-type', '').lower()
# Mark that we never had any failures
if not watch.get('ignore_status_codes'):
update_obj['consecutive_filter_failures'] = 0