From a8eaa4e2196265c80d75fd52572415b45c7f57c2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 26 May 2026 11:18:53 +0800 Subject: [PATCH] fix: get_new_users_month - use 'created_at' instead of non-existent 'created_date' column in users table --- dashboard_for_sage/load_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard_for_sage/load_dashboard.py b/dashboard_for_sage/load_dashboard.py index b60e74a..c4690d0 100644 --- a/dashboard_for_sage/load_dashboard.py +++ b/dashboard_for_sage/load_dashboard.py @@ -229,7 +229,7 @@ async def get_new_users_month(request): month_start = datetime.now().strftime('%Y-%m-01') async with get_sor_context(env, 'sage') as sor: sql = """ - SELECT COUNT(*) as cnt FROM users WHERE created_date >= ${month_start}$ + SELECT COUNT(*) as cnt FROM users WHERE created_at >= ${month_start}$ """ recs = await sor.sqlExe(sql, {'month_start': month_start}) cnt = int(recs[0].get('cnt', 0)) if recs else 0