From 20b9804653f238c2cdde8a4a384b7c76bbab323a Mon Sep 17 00:00:00 2001 From: Swee Date: Wed, 2 Oct 2024 21:58:29 -0700 Subject: [PATCH] remove restart function from dashboard --- sweebot-dashboard.py | 5 ----- sweebot.html | 1 - 2 files changed, 6 deletions(-) diff --git a/sweebot-dashboard.py b/sweebot-dashboard.py index a8e84aa..bd55bae 100644 --- a/sweebot-dashboard.py +++ b/sweebot-dashboard.py @@ -21,11 +21,6 @@ def block(): @app.route('/script.js') def script(): return send_file("script.js", mimetype='application/javascript') -@app.route('/reboot.run') -def reboot(): - os.system("systemctl --user restart sweebot") - wait(1) - return "" if __name__ == '__main__': diff --git a/sweebot.html b/sweebot.html index c260f63..48456ed 100644 --- a/sweebot.html +++ b/sweebot.html @@ -11,7 +11,6 @@

-