Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix validator so next links are followed the correct number of times #1318

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions optimade/validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,11 +1338,11 @@ def _test_page_limit(
f"Error when testing pagination: the response from `links->next` {next_link!r} failed the previous test."
)

check_next_link = bool(check_next_link - 1)
check_next_link = check_next_link - 1
self._test_page_limit(
next_response,
check_next_link=check_next_link,
multistage=check_next_link,
multistage=bool(check_next_link),
previous_links=previous_links,
)

Expand Down