From 456258c976cc55dc84c025180affec3ae34c288d Mon Sep 17 00:00:00 2001 From: terrtia Date: Wed, 6 Nov 2024 11:25:46 +0100 Subject: [PATCH] chg: [flask modules] remove old modules --- var/www/blueprints/root.py | 6 ------ var/www/modules/dashboard/templates/index.html | 5 +---- var/www/static/js/indexjavascript.js | 5 ----- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/var/www/blueprints/root.py b/var/www/blueprints/root.py index 2cf4796f..90e25c65 100644 --- a/var/www/blueprints/root.py +++ b/var/www/blueprints/root.py @@ -305,9 +305,3 @@ def logout(): @login_required def role(): return render_template("error/403.html"), 403 - -@root.route('/searchbox/') -@login_required -@login_read_only -def searchbox(): - return render_template("searchbox.html") diff --git a/var/www/modules/dashboard/templates/index.html b/var/www/modules/dashboard/templates/index.html index 9e2f4d86..10dc5a03 100644 --- a/var/www/modules/dashboard/templates/index.html +++ b/var/www/modules/dashboard/templates/index.html @@ -74,12 +74,9 @@
Feeder(s) Monitor:
-
+
{#style="height:420px;"#} Processed items
-
- Filtered duplicates -
diff --git a/var/www/static/js/indexjavascript.js b/var/www/static/js/indexjavascript.js index 8eaadf3f..87fb7ba8 100644 --- a/var/www/static/js/indexjavascript.js +++ b/var/www/static/js/indexjavascript.js @@ -26,7 +26,6 @@ function checkIfReceivedData(){ } else { if ((new Date().getTime() - time_since_last_pastes_num["Proc"+list_feeder[i]]) > 35*1000){ window.paste_num_tabvar_all["Proc"+list_feeder[i]] = 0; - window.paste_num_tabvar_all["Dup"+list_feeder[i]] = 0; } } } @@ -183,10 +182,8 @@ function create_log_table(obj_json) { data_for_processed_paste["global"] = Array(totalPoints+1).join(0).split(''); var feederProc = $.plot("#Proc_feeder", [ getData(feeder, "Proc") ], options_processed_pastes); - var feederDup = $.plot("#Dup_feeder", [ getData(feeder, "Dup") ], options_processed_pastes); update_processed_pastes(feederProc, "feeder", "Proc"); - update_processed_pastes(feederDup, "feeder", "Dup"); update_processed_pastes(total_proc, "global"); setTimeout(checkIfReceivedData, 45*1000); } @@ -196,10 +193,8 @@ function create_log_table(obj_json) { if (list_feeder.indexOf(feeder) == -1) { list_feeder.push(feeder); data_for_processed_paste["Proc"+feeder] = Array(totalPoints+1).join(0).split(''); - data_for_processed_paste["Dup"+feeder] = Array(totalPoints+1).join(0).split(''); } - var feederName = msg_type == "Duplicated" ? "Dup"+feeder : "Proc"+feeder; window.paste_num_tabvar_all[feederName] = paste_processed; time_since_last_pastes_num[feederName] = new Date().getTime(); }