-
Notifications
You must be signed in to change notification settings - Fork 10
IoCDownloader: older_than param #30
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
Conversation
| return | ||
|
|
||
| if ( | ||
| not self.newer_than and not self.older_than |
There was a problem hiding this comment.
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?
| :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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| :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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| resp = self.session.make_api_request(f"{self.RELATIVE_URL}", params=params) | |
| resp = self.session.make_api_request(self.RELATIVE_URL, params=params) |
No description provided.