From 63bbff3be8a29a7932d4ae78562c4680a949bdc9 Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 6 Dec 2024 18:12:56 -0800 Subject: [PATCH] Delete sweebot-dashboard.py --- sweebot-dashboard.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 sweebot-dashboard.py diff --git a/sweebot-dashboard.py b/sweebot-dashboard.py deleted file mode 100644 index bd55bae..0000000 --- a/sweebot-dashboard.py +++ /dev/null @@ -1,30 +0,0 @@ -from flask import Flask -from flask import send_file -from flask import request -from flask import redirect -import os -from pathlib import Path -from time import sleep as wait -app = Flask(__name__) - -@app.route('/') -def index(): - return send_file("sweebot.html", mimetype='text/html') -@app.route('/run.txt') -def run(): - wait(2) - return send_file(str(Path.home()) + "/run.txt", mimetype='text/html') -@app.route('/block.txt') -def block(): - wait(2) - return send_file(str(Path.home()) + "/block.txt", mimetype='text/html') -@app.route('/script.js') -def script(): - return send_file("script.js", mimetype='application/javascript') - - -if __name__ == '__main__': - - # run() method of Flask class runs the application - # on the local development server. - app.run(host='0.0.0.0',port=2001) \ No newline at end of file