Skip to content

Commit 57d6757

Browse files
committed
chore : 버그 수정
1 parent 46bddd0 commit 57d6757

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/statistics/router.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@ def get_statistics_by_month(
7979
if not stats:
8080
raise HTTPException(status_code=404, detail="해당 연도/월 통계가 없습니다.")
8181

82-
emotion_ids = [s.emotiontype_id for s in stats if s.emotiontype_id is not None]
82+
emotion_ids = []
83+
for s in stats:
84+
if s.emotiontype_id is not None:
85+
emotion_ids.extend([s.emotiontype_id] * s.count)
86+
8387
return summarize_emotions(emotion_ids)

0 commit comments

Comments
 (0)