From f8bcbca7c7a459fd0cf62d721ef1e22ad5a99166 Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 6 Dec 2024 18:04:14 -0800 Subject: [PATCH] patch --- sweebot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sweebot.py b/sweebot.py index 307d2a9..ab307bf 100644 --- a/sweebot.py +++ b/sweebot.py @@ -21,16 +21,16 @@ from flask import Flask, send_file app = Flask(__name__) @app.route('/') -def index(): +def index_html(): return send_file("sweebot.html", mimetype='text/html') @app.route('/run.txt') -def run(): +def runs(): return str(run) @app.route('/block.txt') -def block(): +def blocks(): return str(block) @app.route('/script.js') -def script(): +def script_js(): return send_file("script.js", mimetype='application/javascript') threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()