21 lines
408 B
Python
21 lines
408 B
Python
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)
|