Skip to content
Browse files

Should be lte instead of gte.

  • Loading branch information...
1 parent 9d5193a commit 87096b053a7fc7c0f3b70c1cbb4ad0de945dd524 @dram committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 jaikuengine/common/user.py
View
2 jaikuengine/common/user.py
@@ -69,7 +69,7 @@ def purge_expired_user_auth_token_keys():
#TODO: Remove hard coded limit
limit = 10
try:
- objs = Session.objects.filter(expire_date__gte=api.utcnow())
+ objs = Session.objects.filter(expire_date__lte=api.utcnow())
expired_tokens = len(objs)
if expired_tokens:
objs[:limit].delete()

0 comments on commit 87096b0

Please sign in to comment.
Something went wrong with that request. Please try again.