Skip to content

Commit 70e7f09

Browse files
authored
Merge pull request #165 from jbrand-dsp/frankfurter-update
start_date and end_date assigned defaults for latest and currencies
2 parents 8793d53 + d57c40d commit 70e7f09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ingestr/src/sources.py

+5
Original file line numberDiff line numberDiff line change
@@ -2064,6 +2064,11 @@ def dlt_source(self, uri: str, table: str, **kwargs):
20642064
end_date = pendulum.now()
20652065
validate_dates(start_date=start_date, end_date=end_date)
20662066

2067+
# For currencies and latest tables, set start and end dates to current date
2068+
else:
2069+
start_date = pendulum.now()
2070+
end_date = pendulum.now()
2071+
20672072
# Validate table
20682073
if table not in ["currencies", "latest", "exchange_rates"]:
20692074
raise ValueError(

0 commit comments

Comments
 (0)