Replace concat() with plus due to sqlite3 limitation
Some checks failed
Run Tests / run-tests (push) Failing after 31s

This commit is contained in:
2026-04-25 19:00:44 +02:00
parent cab4ca25ee
commit ea206a2ac3

View File

@@ -29,7 +29,7 @@ def get_all_monthly_analytics(end_date:str = 'now'):
group by counter_id, strftime('%m', timestamp), strftime('%Y', timestamp) group by counter_id, strftime('%m', timestamp), strftime('%Y', timestamp)
) )
select select
concat(m.m,', ',m.y) as "month", m.m + ', ' + m.y as "month",
case case
when counter_id is null then json_object() when counter_id is null then json_object()
else json_group_object(name, count) else json_group_object(name, count)