aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-31 09:35:43 +0300
committerFrederick Muriuki Muriithi2023-07-31 09:35:43 +0300
commitaab6fb9a82c148a0f87949dee058b04c3830eccd (patch)
treecbd63271be73a5926e8657d30f54a62e01733361 /gn3/auth
parente3cb6bc3c049c9899b55768c607b71d253d31ca9 (diff)
downloadgenenetwork3-aab6fb9a82c148a0f87949dee058b04c3830eccd.tar.gz
Fix typing issue
Diffstat (limited to 'gn3/auth')
-rw-r--r--gn3/auth/authorisation/resources/views.py2
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