an /new endpoint gearbeitet

This commit is contained in:
thorax2077 2022-11-21 09:08:29 +01:00
parent 9b6994d843
commit eaf482ee7c

View File

@ -183,7 +183,9 @@ def session(id):
@app.route("/mate", methods=['POST'])
def mate():
if session:
mateFlasche = request.form['mateFlaschen']
mateFlaschen = request.form['mateFlaschen']
mateSorte = request.form['mateSorte']
mateSql = f"INSERT INTO mate VALUES (\"{mateSorte}\", {mateFlaschen}, {session});"
log_server("called /mate")
return render_template("404.html")