diff --git a/Projekt.7z b/Projekt.7z deleted file mode 100644 index 983527e..0000000 Binary files a/Projekt.7z and /dev/null differ diff --git a/Projekt/app.py b/Projekt/app.py new file mode 100644 index 0000000..fc73653 --- /dev/null +++ b/Projekt/app.py @@ -0,0 +1,21 @@ +from flask import Flask, render_template +import json + +app = Flask(__name__) + + +@app.route("/") +def home(): + + # Sitzplan-Datei öffnen + with open("sitzplan.json", "r", encoding="utf-8") as datei: + sitzplan = json.load(datei) + + return render_template( + "index.html", + sitzplan=sitzplan + ) + + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=5000) diff --git a/Projekt/sitzplan.json b/Projekt/sitzplan.json new file mode 100644 index 0000000..165219c --- /dev/null +++ b/Projekt/sitzplan.json @@ -0,0 +1,27 @@ +[ + { + "platz": "platz01", + "name": "Max", + "nachricht": "" + }, + { + "platz": "platz02", + "name": "Lea", + "nachricht": "" + }, + { + "platz": "platz03", + "name": "Tim", + "nachricht": "" + }, + { + "platz": "platz04", + "name": "Ben", + "nachricht": "" + }, + { + "platz": "platz05", + "name": "Eva", + "nachricht": "" + } +] \ No newline at end of file diff --git a/Projekt/templates/index.html b/Projekt/templates/index.html new file mode 100644 index 0000000..b4a8978 --- /dev/null +++ b/Projekt/templates/index.html @@ -0,0 +1,49 @@ + + +
+