mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 11:47:00 +00:00
fix min blockdate issue (#495)
This commit is contained in:
parent
81ced7bc61
commit
5c8c2d9afa
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user