Skip to content

Commit

Permalink
fix: get nested field if present
Browse files Browse the repository at this point in the history
  • Loading branch information
dlbrittain committed Aug 28, 2024
1 parent 02370a4 commit d919efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion materializationengine/celery_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def setup_periodic_tasks(sender, **kwargs):

elif task_name == "run_periodic_materialization":
# If `days_to_expire` is not provided, calculate it dynamically #TODO handle this better
if datastack_params["days_"] == 30:
if datastack_params.get("days_to_expire") == 30:
datastack_params["days_to_expire"] = days_till_next_month(
datetime.datetime.now(datetime.timezone.utc)
)
Expand Down

0 comments on commit d919efa

Please sign in to comment.