From 09465d675a3e7a9d55c3730fa9a70a3667159784 Mon Sep 17 00:00:00 2001 From: Tahar Lamred & Theresa Nerz Date: Fri, 19 Jun 2026 14:10:04 +0200 Subject: [PATCH] Pinnwand --- app/app.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/app.py b/app/app.py index 47f3747..faf188c 100644 --- a/app/app.py +++ b/app/app.py @@ -15,5 +15,19 @@ def frage(): return '
Was ist 3 + 5? ' \ '
' +eintraege = [] + +@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=9003)