From 1529c77084afd0a3e11c09bf6f492e3ba6a95701 Mon Sep 17 00:00:00 2001 From: iou1name Date: Wed, 20 Jun 2018 22:21:22 -0400 Subject: [PATCH] session remembers header hidden state --- events.py | 2 +- templates/base.html | 8 +++-- templates/quest.html | 78 ++++++++++++++++++++++---------------------- views.py | 13 ++++++++ 4 files changed, 59 insertions(+), 42 deletions(-) diff --git a/events.py b/events.py index 25756c3..0e9f653 100644 --- a/events.py +++ b/events.py @@ -59,6 +59,6 @@ def new_post(data): post = bleach.clean(post.strip()) post = post.replace("\n", "
") data["post"] = [post] - db.insert_quest_post(int(room), post, int(time.time())) + db.insert_quest_post(room, post, int(time.time())) emit("new_post", data, room=room) diff --git a/templates/base.html b/templates/base.html index e0199f3..b67b71c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,25 +5,29 @@ {% block head %}{% endblock %} -