From ad5dd0e7a562799a64835f0309735611953ed374 Mon Sep 17 00:00:00 2001 From: annika koenig Date: Wed, 17 Jun 2026 16:44:22 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A4nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 19 +++++++++++++++++++ pinnwand.py | 18 ------------------ 2 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 pinnwand.py diff --git a/app.py b/app.py index fa90053..4751704 100644 --- a/app.py +++ b/app.py @@ -18,3 +18,22 @@ def frage(): if __name__ == "__main__": app.run(host="0.0.0.0", port=9006) # 90 + Raumnummer +ffrom flask import Flask, request, redirect + +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 deleted file mode 100644 index d03cc60..0000000 --- a/pinnwand.py +++ /dev/null @@ -1,18 +0,0 @@ -from flask import Flask, request, redirect -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