From aab6fb9a82c148a0f87949dee058b04c3830eccd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 31 Jul 2023 09:35:43 +0300 Subject: Fix typing issue --- gn3/auth/authorisation/resources/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') 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 -- cgit v1.2.3