From ea206a2ac3a6ffa39680bbe6b9d85bedd506b459 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Sat, 25 Apr 2026 19:00:44 +0200 Subject: [PATCH] Replace concat() with plus due to sqlite3 limitation --- app/queries/monthly_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/queries/monthly_stats.py b/app/queries/monthly_stats.py index 6da02d5..9f11468 100644 --- a/app/queries/monthly_stats.py +++ b/app/queries/monthly_stats.py @@ -29,7 +29,7 @@ def get_all_monthly_analytics(end_date:str = 'now'): group by counter_id, strftime('%m', timestamp), strftime('%Y', timestamp) ) select - concat(m.m,', ',m.y) as "month", + m.m + ', ' + m.y as "month", case when counter_id is null then json_object() else json_group_object(name, count)