From 8656c44757855d3f2943739384ee0f7b5dd09850 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Thu, 9 Jan 2025 13:02:21 -0500 Subject: [PATCH] Make sure join is correct table. Signed-off-by: Cliff Hill --- app/dao/services_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index 099cb0da1..2aa810504 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -465,7 +465,7 @@ def dao_fetch_stats_for_service_from_days(service_id, start_date, end_date): func.count(NotificationAllTimeView.id).label("count"), ) .join_from( - Notification, + NotificationAllTimeView, Job, ) .where(