fix min blockdate issue (#495)
Some checks are pending
docs_update / run_dbt_jobs (push) Waiting to run
docs_update / notify-failure (push) Blocked by required conditions

This commit is contained in:
Jack Forgash 2025-10-22 16:21:09 -06:00 committed by GitHub
parent 81ced7bc61
commit 5c8c2d9afa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ WHERE
) {% endset %}
{% set min_block_timestamp_hour = run_query(query).columns [0].values() [0] %}
{% if min_block_timestamp_hour is none %}
{% set min_block_timestamp_hour = "DATE_TRUNC('hour', CURRENT_TIMESTAMP - INTERVAL '3 days')" %}
{% set min_block_timestamp_hour = run_query("SELECT DATE_TRUNC('hour', CURRENT_TIMESTAMP - INTERVAL '3 days')").columns[0].values()[0] %}
{% endif %}
{% endif %}
{% endif %}