fd
This commit is contained in:
parent
4d0d981b45
commit
4f8a62df41
1 changed files with 3 additions and 0 deletions
|
@ -191,8 +191,11 @@ def post_id(pid, anything=None, v=None):
|
||||||
|
|
||||||
session[str(post.id)] = int(time.time())
|
session[str(post.id)] = int(time.time())
|
||||||
|
|
||||||
|
print(session)
|
||||||
|
|
||||||
keys = []
|
keys = []
|
||||||
for key, val in session.items():
|
for key, val in session.items():
|
||||||
|
print(key)
|
||||||
if type(val) is int and key not in ['login_nonce','user_id']:
|
if type(val) is int and key not in ['login_nonce','user_id']:
|
||||||
if time.time() - val > 86400: keys += key
|
if time.time() - val > 86400: keys += key
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue