yazdipour / OmnivoreQL

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

fix: Update get_articles method to accept integer cursor #27

Closed yazdipour closed 5 months ago

yazdipour commented 5 months ago

Summary by Sourcery

This pull request updates the get_articles method to accept an integer cursor for pagination, fixing a bug. Additionally, it clarifies the method's documentation regarding the maximum number of articles that can be fetched and the cursor parameter.

sourcery-ai[bot] commented 5 months ago

Reviewer's Guide by Sourcery

This pull request updates the get_articles method in the omnivoreql.py file to accept an integer cursor instead of a string. This change ensures that the cursor parameter is now an integer, which aligns with the expected data type for pagination purposes. Additionally, the docstring has been updated to reflect this change and provide clearer information on the parameters.

File-Level Changes

Files Changes
omnivoreql/omnivoreql.py Updated the get_articles method to accept an integer cursor and revised the docstring for clarity.

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.