From 72108bf0137ac4dd3ad014f10adda6872ec5c6c2 Mon Sep 17 00:00:00 2001 From: Florian Bischof Date: Sun, 31 Dec 2023 12:19:16 +0100 Subject: [PATCH] fix: wrong response count in lists causes showing "Next page" --- resources/lib/utils/api_paths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/utils/api_paths.py b/resources/lib/utils/api_paths.py index 049685d88..762c66261 100644 --- a/resources/lib/utils/api_paths.py +++ b/resources/lib/utils/api_paths.py @@ -324,7 +324,8 @@ def jgrapgh_len(data_dict): """ count = 0 for value in data_dict: - if data_dict[value].get('$type') == 'atom': + ref = _remove_nesting(data_dict[value]) + if ref.get('$type') == 'atom': break count += 1 return count