mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-16 17:24:36 +00:00
mate
This commit is contained in:
parent
1c2feb9e6e
commit
90420f771f
8
main.py
8
main.py
@ -169,6 +169,12 @@ def session(id):
|
||||
creator = cur.execute("SELECT username FROM user WHERE info = 'creator'").fetchall()
|
||||
cur.close()
|
||||
|
||||
con = sqlite3.connect("party.db")
|
||||
warning_log("Verbindung mit Datenbank wurde aufgenommen /seession")
|
||||
cur = con.cursor()
|
||||
mate = cur.execute("SELECT matename, mateanzahl FROM mate WHERE sessionID = \'{id}\'").fetchall()
|
||||
cur.close()
|
||||
|
||||
con = sqlite3.connect("party.db")
|
||||
cur = con.cursor()
|
||||
l = f"SELECT userID, Spielname, Spielaktivität, ZEIT FROM game WHERE sessionID = \'{id}\' ORDER BY ZEIT;"
|
||||
@ -176,7 +182,7 @@ def session(id):
|
||||
con.commit()
|
||||
cur.close()
|
||||
|
||||
return render_template("session.html", asd=asd, game=game, das=user_count, er=creator, der=uptime())
|
||||
return render_template("session.html", asd=asd, game=game, das=user_count, er=creator, mate=mate, der=uptime())
|
||||
else:
|
||||
warning_log(" called /session without being logged in")
|
||||
return render_template('passwd.html')
|
||||
|
||||
@ -102,6 +102,7 @@
|
||||
</div>
|
||||
<div hidden class="tmplt_tab" id="_mate">
|
||||
<form class="modal-content animate" action="http://127.0.0.1:5000/mate" method="POST">
|
||||
<p>folgende Mateflaschen sind auf Lager {{ game }} </p>
|
||||
<div class="container" style="margin-top: 2em" >
|
||||
<input type="text" placeholder="Mate Flaschen Anzahl" name="mateFlaschen" required>
|
||||
<input type="text" placeholder="Mate Marke" name="mateSorte" required>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user