Skip to content

Commit ce2ff6f

Browse files
default start date to yesterday
1 parent ed0c325 commit ce2ff6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ingestr/src/sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,11 +2449,11 @@ def dlt_source(self, uri: str, table: str, **kwargs):
24492449
if secret_key is None:
24502450
raise MissingValueError("secret_key", "Solidgate")
24512451

2452-
table_name = table.replace(" ", "").split(":")[0]
2452+
table_name = table.replace(" ", "")
24532453

24542454
start_date = kwargs.get("interval_start")
24552455
if start_date is None:
2456-
start_date = ensure_pendulum_datetime("yesterday").in_tz("UTC")
2456+
start_date = pendulum.yesterday().in_tz("UTC")
24572457
else:
24582458
start_date = ensure_pendulum_datetime(start_date).in_tz("UTC")
24592459

0 commit comments

Comments
 (0)