Skip to content

Commit

Permalink
fix: wrong response count in lists causes showing "Next page"
Browse files Browse the repository at this point in the history
  • Loading branch information
Falke-Design committed Dec 31, 2023
1 parent fd5f40f commit 72108bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/lib/utils/api_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 72108bf

Please sign in to comment.