From f42c3257a87e97acfaed9a2976a6b76a9b62d469 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Fri, 21 Feb 2025 00:19:22 +1100 Subject: [PATCH] Remove unused timer functions dashboard route and template - Delete `/dashboard/timer_functions` route from `app.py` - Remove `timer_functions.html` template - Simplify application routing by eliminating unused dashboard view --- app.py | 6 ---- templates/dashboard/timer_functions.html | 39 ------------------------ 2 files changed, 45 deletions(-) delete mode 100644 templates/dashboard/timer_functions.html diff --git a/app.py b/app.py index 02d8be1..84572e5 100644 --- a/app.py +++ b/app.py @@ -250,12 +250,6 @@ def get_http_function_history(function_id): return render_block(app.jinja_env, 'dashboard/http_functions/history.html', 'page', user_id=user_id, function_id=function_id, name=name, http_function=http_function, http_function_history=http_function_history, original_script=original_script) return render_template("dashboard/http_functions/history.html", user_id=user_id, name=name, function_id=function_id, http_function=http_function, http_function_history=http_function_history, original_script=original_script) -@ app.route("/dashboard/timer_functions", methods=["GET"]) -@login_required -def dashboard_timer_functions(): - return render_template("dashboard/timer_functions.html") - - @app.route('/execute', methods=['POST']) def execute_code(): try: diff --git a/templates/dashboard/timer_functions.html b/templates/dashboard/timer_functions.html deleted file mode 100644 index ce3310b..0000000 --- a/templates/dashboard/timer_functions.html +++ /dev/null @@ -1,39 +0,0 @@ -
-

Timer functions

- -
-
-
- - - - - - - - - - - - - - - -
Name
HelloWorld
-
-
\ No newline at end of file