forked from MarseyWorld/MarseyWorld
master
parent
1bffcda00f
commit
d14b601390
|
@ -191,10 +191,9 @@ def post_id(pid, anything=None, v=None):
|
|||
|
||||
session[str(post.id)] = int(time.time())
|
||||
|
||||
test = session.items()
|
||||
for key, val in test:
|
||||
for key, val in session.items():
|
||||
if type(val) is int and key not in ['login_nonce','user_id']:
|
||||
if time.time() - val > 86400: del session[key]
|
||||
if time.time() - val > 86400: session.pop(key)
|
||||
|
||||
print(session)
|
||||
|
||||
|
|
Loading…
Reference in New Issue