Skip to content

Commit 217fcfc

Browse files
authored
Set default older_than to tomorrow
1 parent 27bf48d commit 217fcfc

File tree

1 file changed

+1
-1
lines changed
  • src/acquisition/covid_hosp/common

1 file changed

+1
-1
lines changed

src/acquisition/covid_hosp/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def update_dataset(database, network, newer_than=None, older_than=None):
194194
with database.connect() as db:
195195
max_issue = db.get_max_issue(logger=logger)
196196

197-
older_than = datetime.datetime.today().date() if newer_than is None else older_than
197+
older_than = (datetime.datetime.today().date() + datetime.timedelta(days=1)) if newer_than is None else older_than
198198
newer_than = max_issue if newer_than is None else newer_than
199199
daily_issues = Utils.issues_to_fetch(metadata, newer_than, older_than, logger=logger)
200200
if not daily_issues:

0 commit comments

Comments
 (0)