feat: macro series

This commit is contained in:
OpenSquared
2026-07-01 16:16:51 +02:00
parent 776c19e1ae
commit 8b59eff744
3 changed files with 45 additions and 8 deletions

View File

@@ -663,6 +663,10 @@ def series_history(
ff_params: list = [series_id]
if from_date:
ff_where.append("event_date >= ?"); ff_params.append(from_date)
# Filter to the series' native currency to avoid mixing countries
ff_currency = meta.get("ff_currency")
if ff_currency:
ff_where.append("currency = ?"); ff_params.append(ff_currency)
ff_rows = conn.execute(
f"SELECT event_date, event_time, event_name, actual_value, "