diff --git a/files/routes/posts.py b/files/routes/posts.py index a46f604343..30762d7a0d 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -193,7 +193,9 @@ def post_id(pid, anything=None, v=None): for key, val in session.items(): if type(val) is int and key not in ['login_nonce','user_id']: - print(key + str(val)) + if time.time() - val > 86400: del session[key] + + print(session) post.views += 1 g.db.add(post)