We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e273232 commit 9610591Copy full SHA for 9610591
1 file changed
optimade/client/client.py
@@ -992,6 +992,8 @@ async def _get_one_async(
992
"data_available", 0
993
)
994
page_limit = len(page_results["data"])
995
+ if page_limit == 0:
996
+ page_limit = 1
997
if total_data_available and total_data_available > 0:
998
stopping_criteria = min(
999
math.ceil(total_data_available / page_limit),
@@ -1094,6 +1096,8 @@ def _get_one(
1094
1096
1095
1097
1098
1099
1100
1101
1102
1103
0 commit comments