From e178bbee572735607234bd866b7f50cca12b813c Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Thu, 25 Apr 2024 22:24:39 +0100 Subject: [PATCH] Delete down --- down | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 down diff --git a/down b/down deleted file mode 100644 index 15c479c..0000000 --- a/down +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/python3 -import configparser -from waitress import serve -from flask import Flask, render_template, request, url_for, flash, redirect, session, make_response, send_from_directory, stream_with_context, Response, request - -config = configparser.ConfigParser() -config.read("config.ini") - -HOST = config["config"]["HOST"] -PORT = config["config"]["PORT"] -SECRET_KEY = config["config"]["SECRET_KEY"] - -app = Flask(__name__, static_folder=None) -app.config["SECRET_KEY"] = SECRET_KEY - -@app.errorhandler(404) -def main(e): - return render_template("down.html"), 503 - -@app.route("/grid.svg") -def staticgrid(): - return Response(""" - - -""", mimetype="image/svg+xml") - -if __name__ == "__main__": - print("[INFO] Server started") - serve(app, host=HOST, port=PORT) - print("[INFO] Server stopped") \ No newline at end of file