remove: unused variable; fix: debug mode off
All checks were successful
/ update (push) Successful in 0s

This commit is contained in:
ahoemann 2024-12-05 12:44:54 +01:00
parent 0096229575
commit 16b7b2e0ba
3 changed files with 40 additions and 5 deletions

7
app.py
View file

@ -3,7 +3,7 @@ from flask import Flask, render_template, redirect, url_for
import requests
app = Flask(__name__)
navigation = {"Imprint":"imprint"}
@app.route("/imprint")
def root():
return render_template("imprint.html")
@ -29,14 +29,11 @@ def get_status_code(link):
def get_status(link):
match get_status_code(link):
case 200:
print(200)
return "ONLINE"
case 500:
print(500)
return "ERROR"
case _:
print("OTHER")
return "OFFLINE"
if __name__ == "__main__":
app.run(debug=True)
app.run(debug=False)