mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-18 10:14:42 +00:00
an /new endpoint gearbeitet
This commit is contained in:
parent
9b6994d843
commit
eaf482ee7c
4
main.py
4
main.py
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user