From 79673d5999166e42ec9e040f4572a7348a7b1ed4 Mon Sep 17 00:00:00 2001 From: annika koenig Date: Wed, 17 Jun 2026 16:34:28 +0200 Subject: [PATCH] pinnwand --- app.py | 17 ----------------- pinnwand.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 pinnwand.py diff --git a/app.py b/app.py index 04b01f3..fa90053 100644 --- a/app.py +++ b/app.py @@ -18,20 +18,3 @@ def frage(): if __name__ == "__main__": app.run(host="0.0.0.0", port=9006) # 90 + Raumnummer - app = Flask(__name__) -eintraege = [] # speichert die Nachrichten (im Arbeitsspeicher) - -@app.route("/pinnwand", methods=["GET", "POST"]) -def pinnwand(): - if request.method == "POST": - eintraege.append(request.form["nachricht"]) - return redirect("/app/pinnwand") - liste = "" - for e in eintraege: - liste = liste + "
  • " + e + "
  • " - return '

    Pinnwand

    ' \ - '
    ' \ - '
    ' - -if __name__ == "__main__": - app.run(host="0.0.0.0", port=9006) # 90 + Raumnummer \ No newline at end of file diff --git a/pinnwand.py b/pinnwand.py new file mode 100644 index 0000000..9556d00 --- /dev/null +++ b/pinnwand.py @@ -0,0 +1,17 @@ + app = Flask(__name__) +eintraege = [] # speichert die Nachrichten (im Arbeitsspeicher) + +@app.route("/pinnwand", methods=["GET", "POST"]) +def pinnwand(): + if request.method == "POST": + eintraege.append(request.form["nachricht"]) + return redirect("/app/pinnwand") + liste = "" + for e in eintraege: + liste = liste + "
  • " + e + "
  • " + return '

    Pinnwand

    ' \ + '
    ' \ + '
    ' + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=9006) # 90 + Raumnummer \ No newline at end of file