This commit is contained in:
fingadumbledore 2022-10-25 10:28:02 +02:00
parent 8fe022ac4f
commit 275cacee92
3 changed files with 11 additions and 11 deletions

View File

@ -128,8 +128,11 @@ def get_planer():
@app.route("/session")
def session():
con = sqlite3.connect("party.db")
cur = con.cursor()
die = cur.execute("SELECT sessionname FROM session").fetchall()
log_server("called /session")
return render_template("session.html")
return render_template("session.html", die=die)
@app.route("/logout")
def logout():

BIN
party.db-journal Normal file

Binary file not shown.

View File

@ -8,17 +8,14 @@
<title>Willkommen</title>
</head>
<body>
<center><h1>Willkommen</h1>
<p>Vielen Dank das du Party-Controller benutzt</p>
<center><h1>Willkommen bei</h1>
{% block content %}
<p>{{die}}</p>
{% endblock %}
<h3>Regeln</h3>
<p>&#8226; F</p>
<p>&#8226; F</p>
<p>&#8226; F</p>
<p>&#8226; F</p>
<p>&#8226; F</p>
<p>&#8226; F</p>
<p>&#8226; F</p>
<p>&#8226; 1.Freundlich sein</p>
<p>&#8226; 2.Nichts Illegales machen</p>
<p>&#8226; 3.Spaß haben</p>
</center>
</body>
</html>