yazdipour / OmnivoreQL

@Omnivore-app API client for Python
https://pypi.org/project/omnivoreql/
MIT License
69 stars 6 forks source link

Bugfix/fix cursor #28

Closed yazdipour closed 5 months ago

yazdipour commented 5 months ago

Summary by Sourcery

This pull request addresses a bug in the get_articles method by replacing the 'cursor' parameter with 'after' to correct pagination functionality.

sourcery-ai[bot] commented 5 months ago

Reviewer's Guide by Sourcery

This pull request addresses a bug related to cursor-based pagination in the get_articles method of the omnivoreql.py file. The changes replace the cursor parameter with an after parameter, which is now an integer instead of a string. This modification aims to simplify the pagination logic and improve the method's usability.

File-Level Changes

Files Changes
omnivoreql/omnivoreql.py Replaced the cursor parameter with an after parameter in the get_articles method, updated the docstring, and modified the GraphQL query accordingly.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.