diff --git a/WebHostLib/templates/hostGame.html b/WebHostLib/templates/hostGame.html index 7505aa7d..59bd55c0 100644 --- a/WebHostLib/templates/hostGame.html +++ b/WebHostLib/templates/hostGame.html @@ -53,6 +53,32 @@ {% endif %} + {% if seeds %} +

Your Games:

+ + + + + + + + + + {% for seed in seeds %} + + + + + + {% endfor %} + +
SeedPlayersCreated (UTC)
{{ seed.id|suuid }}{% if seed.multidata %}{{ seed.multidata.names[0]|length }}{% else %}1{% endif %} + {{ seed.creation_time.strftime("%Y-%m-%d %H:%M") }}
+ {% endif %} diff --git a/WebHostLib/upload.py b/WebHostLib/upload.py index 9313c285..6f1fe619 100644 --- a/WebHostLib/upload.py +++ b/WebHostLib/upload.py @@ -70,7 +70,8 @@ def uploads(): else: flash("Not recognized file format. Awaiting a .multidata file.") rooms = select(room for room in Room if room.owner == session["_id"]) - return render_template("hostGame.html", rooms=rooms) + seeds = select(seed for seed in Seed if seed.owner == session["_id"]) + return render_template("hostGame.html", rooms=rooms, seeds=seeds) def allowed_file(filename):