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

Fix page link handling #177

Merged
merged 2 commits into from
Oct 1, 2020
Merged

Fix page link handling #177

merged 2 commits into from
Oct 1, 2020

Conversation

CasperWA
Copy link
Owner

@CasperWA CasperWA commented Oct 1, 2020

Fixes #26

While the #26 issue may already be fixed by previous commits, this fix will make sure that offset is always updated, but not acted on if a page_link is used to move to another page. Hence, this will officially close the issue.

The fix is to move the return block up to be the first thing that happens to avoid any cascading updates.

Double querying could take place if a `page_link` is used for
pagination. This makes sure to avoid that by moving the `if not
perform_query` block up as the first event in `_get_more_results()`.
@CasperWA CasperWA merged commit 437ee92 into develop Oct 1, 2020
@CasperWA CasperWA deleted the fix_page_link-handling branch October 1, 2020 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pageing offset issue
1 participant