diff options
-rw-r--r-- | gn3/auth/authorisation/resources/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/auth/authorisation/resources/views.py b/gn3/auth/authorisation/resources/views.py index feacdd6..3b2bbeb 100644 --- a/gn3/auth/authorisation/resources/views.py +++ b/gn3/auth/authorisation/resources/views.py @@ -82,7 +82,7 @@ def __safe_get_requests_page__(key: str = "page") -> int: def __safe_get_requests_count__(key: str = "count_per_page") -> int: """Get the results page if it exists or default to the first page.""" try: - count = request.args.get(key, 0) + count = request.args.get(key, "0") if count != 0: return abs(int(count, base=10)) return 0 |