Skip to content

Conversation

@Edouard360
Copy link
Collaborator

No description provided.

return

if (
not self.newer_than and not self.older_than
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be an error? Older than isn't relevant to the stopping condition?

@Edouard360 Edouard360 merged commit 147875d into master Oct 10, 2025
:param session: The authenticated session to use to make the api calls
:param newer_than: Only articles newer than this parameter will be used. If None only one call will be make,
and the continuation will be ignored
:param older_than: Only articles older than this parameter will be used. If None only one call will be make,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:param older_than: Only articles older than this parameter will be used. If None only one call will be make,
:param older_than: Only articles older than this parameter will be used. If None only one call will be made,

if self.older_than:
params["olderThan"] = int(self.older_than.timestamp())

resp = self.session.make_api_request(f"{self.RELATIVE_URL}", params=params)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resp = self.session.make_api_request(f"{self.RELATIVE_URL}", params=params)
resp = self.session.make_api_request(self.RELATIVE_URL, params=params)

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.

5 participants