Skip to content

Commit

Permalink
fix indy student tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilPawel authored and KamilPawel committed Sep 19, 2023
1 parent 0796d5f commit f8a140d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/helpers/ratelimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def get_usage(request, group=None, fn=None, key=None, rate=None, method=ALL, inc
else:
raise ImproperlyConfigured("Could not understand ratelimit key: %s" % key)

window = _get_window(value=value or request.session.get("auth-username"), period=period)
window = _get_window(value=value or request.session.get("auth-username", ""), period=period)
initial_value = 1 if increment else 0

cache_name = getattr(settings, "RATELIMIT_USE_CACHE", "default")
Expand Down

0 comments on commit f8a140d

Please sign in to comment.