From 4e0fb335800d7962f69b897a087ec4cd6585c54e Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Mon, 1 Feb 2021 16:54:57 +0100 Subject: [PATCH] On manual recheck request, redirect to same tag listing --- backend/backend.py | 5 +++-- backend/templates/watch-overview.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/backend.py b/backend/backend.py index 79b2dd07..aba9c08e 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -285,7 +285,8 @@ def api_watch_checknow(): datastore=datastore) running_update_threads[uuid].start() - return redirect(url_for('main_page')) + tag = request.args.get('tag') + return redirect(url_for('main_page', tag=tag)) @app.route("/api/recheckall", methods=['GET']) @@ -313,7 +314,7 @@ def launch_checks(): minutes = datastore.data['settings']['requests']['minutes_between_check'] for uuid, watch in datastore.data['watching'].items(): - +#@Todo https://pymotw.com/2/Queue/ if watch['last_checked'] <= time.time() - (minutes * 60): running_update_threads[watch['uuid']] = fetch_site_status.perform_site_check(uuid=uuid, datastore=datastore) diff --git a/backend/templates/watch-overview.html b/backend/templates/watch-overview.html index ae9ee6a6..b97d490a 100644 --- a/backend/templates/watch-overview.html +++ b/backend/templates/watch-overview.html @@ -55,7 +55,7 @@