Skip to content

Commit b16f0cf

Browse files
authored
Merge pull request #34 from airflow-laminar/tkp/hf
Make sure argument matches attribute
2 parents 7c44eba + fe6adce commit b16f0cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airflow_ha/operator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def __init__(
5858
self._runtime = timedelta(seconds=runtime) if isinstance(runtime, int) else runtime
5959
self._endtime = time.fromisoformat(endtime) if isinstance(endtime, str) else endtime
6060
self._maxretrigger = maxretrigger or None
61-
self._start_date_or_logical_date = start_date_or_logical_date
61+
self._start_date_or_logical_date = (
62+
start_date_or_logical_date if start_date_or_logical_date.endswith("_date") else f"{start_date_or_logical_date}_date"
63+
)
6264

6365
# These are kwarsg to pass to the trigger operators
6466
self._pass_trigger_kwargs = pass_trigger_kwargs or {}

0 commit comments

Comments
 (0)