From 2393b72cc6161620b9f12e8f002004aa93f892d9 Mon Sep 17 00:00:00 2001 From: AI-WonYJ Date: Sun, 12 Jul 2026 16:26:42 +0900 Subject: [PATCH] =?UTF-8?q?fix(#13):=20=EB=82=A0=EC=A7=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=ED=9B=84=20=EC=9D=B4=EC=A0=84=20=EB=8C=80=EC=8B=9C?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=EA=B8=B0=EB=A1=9D=20=EC=B6=9C=EB=A0=A5=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit current_status 조회 시 updated_at을 오늘 날자 범위로 제한 당일 CAM 추론 기록이 없으면 현재 인원과 오늘 최대·평균 인원을 초기값으로 반환 --- backend/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/main.py b/backend/main.py index 65266b5..35b4b3c 100644 --- a/backend/main.py +++ b/backend/main.py @@ -100,6 +100,8 @@ def get_current_status_from_db(): today_avg_people_count FROM dashboard.current_status WHERE id = 1 + AND updated_at >= date_trunc('day', now()) + AND updated_at < date_trunc('day', now()) + interval '1 day' """ ) row = cur.fetchone()