Commit dc33a0db authored by Michal Čihař's avatar Michal Čihař

Fix session cleanup in Python 3

Fixes #1074
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 12ae56dd
......@@ -58,7 +58,8 @@ def cleanup_session(session):
Deletes old search results from session storage.
'''
now = int(time.time())
for key in session.keys():
keys = list(session.keys())
for key in keys:
if not key.startswith('search_'):
continue
value = session[key]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment