Skip to content

Commit

Permalink
add else clause to for if loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Sellar committed Sep 21, 2023
1 parent 7a33172 commit 3fd7645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions macros/upload_individual_datasets/upload_model_executions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@
{% else %}
'{{ stage.started_at }}', {# compile_started_at #}
{% endif %}
{ % else %}
null, {# compile_started_at #}
{% endfor %}

{% for stage in model.timing if stage.name == "execute" %}
Expand All @@ -187,6 +189,8 @@
{% else %}
'{{ stage.completed_at }}', {# query_completed_at #}
{% endif %}
{ % else %}
null, {# query_completed_at #}
{% endfor %}
{% else %}
null, {# compile_started_at #}
Expand Down

0 comments on commit 3fd7645

Please sign in to comment.