Skip to content

Commit 14a470d

Browse files
authored
fix skip: 0 case (#373)
1 parent ab59eeb commit 14a470d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiida_optimade/entry_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def handle_query_params(
373373
cursor_kwargs["order_by"] = cursor_kwargs.pop("sort")
374374

375375
# page_offset
376-
if cursor_kwargs.get("skip", False):
376+
if "skip" in cursor_kwargs:
377377
cursor_kwargs["offset"] = cursor_kwargs.pop("skip")
378378

379379
return cursor_kwargs

0 commit comments

Comments
 (0)