fd
This commit is contained in:
parent
116484841c
commit
c5b77a14c1
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue