diff options
author | Frederick Muriuki Muriithi | 2023-07-31 09:35:43 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-31 09:35:43 +0300 |
commit | aab6fb9a82c148a0f87949dee058b04c3830eccd (patch) | |
tree | cbd63271be73a5926e8657d30f54a62e01733361 /gn3/auth/authorisation | |
parent | e3cb6bc3c049c9899b55768c607b71d253d31ca9 (diff) | |
download | genenetwork3-aab6fb9a82c148a0f87949dee058b04c3830eccd.tar.gz |
Fix typing issue
Diffstat (limited to 'gn3/auth/authorisation')
-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 |