diff --git a/files/routes/posts.py b/files/routes/posts.py index f12dbd37d6..155ca1e4e1 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -192,7 +192,8 @@ def post_id(pid, anything=None, v=None): session[str(post.id)] = int(time.time()) for i in session.values(): - print(type(i) is int) + if type(i) is int: + print(i) post.views += 1 g.db.add(post)