Skip to content

Commit

Permalink
Set default older_than to tomorrow
Browse files Browse the repository at this point in the history
  • Loading branch information
krivard authored Jun 30, 2023
1 parent 27bf48d commit 217fcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acquisition/covid_hosp/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def update_dataset(database, network, newer_than=None, older_than=None):
with database.connect() as db:
max_issue = db.get_max_issue(logger=logger)

older_than = datetime.datetime.today().date() if newer_than is None else older_than
older_than = (datetime.datetime.today().date() + datetime.timedelta(days=1)) if newer_than is None else older_than
newer_than = max_issue if newer_than is None else newer_than
daily_issues = Utils.issues_to_fetch(metadata, newer_than, older_than, logger=logger)
if not daily_issues:
Expand Down

0 comments on commit 217fcfc

Please sign in to comment.