Skip to content

Commit 7ac6d00

Browse files
authored
Merge pull request #371 from DigitalSlideArchive/fix-empty
Fix a bug in tracking recent tokens
2 parents 52ae27d + dfae242 commit 7ac6d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

histomicsui/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def getCurrentUser(*args, **kwargs):
341341
'Extend user login duration '
342342
f'(user {user["_id"]}, token {token["_id"][:16]}...)')
343343
if len(_recentTokens) > 100:
344-
_recentTokens.empty()
344+
_recentTokens.clear()
345345
_recentTokens[token['_id']] = time.time()
346346
return result
347347

0 commit comments

Comments
 (0)