From 66babf1b2c4791a9680129cb098947d7e9839405 Mon Sep 17 00:00:00 2001 From: bton Date: Sat, 17 Feb 2024 02:14:08 +0100 Subject: [PATCH] delted stuff --- main.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 main.py diff --git a/main.py b/main.py deleted file mode 100644 index 6376dba..0000000 --- a/main.py +++ /dev/null @@ -1,20 +0,0 @@ -from venv import create -from Website import create_app -from flask_socketio import SocketIO -import atexit, sqlite3, sys, datetime, logging - -app_data = create_app() -app = app_data["app"] - -def exit_handler(): - sys.exit("Program sucsesfully exited") - -def main(): - app_data = create_app() - app = app_data["app"] - socketio = app_data["socketio"] - atexit.register(exit_handler) - socketio.run(app, host='0.0.0.0', port=5000) - -if __name__ == "__main__": - main() \ No newline at end of file