Skip to content

Commit

Permalink
Merge pull request #121 from 2024-SummerBootcamp-Team/develop
Browse files Browse the repository at this point in the history
[main] main Merge
  • Loading branch information
dlwhsk0 authored Jul 25, 2024
2 parents 51c9ff2 + 64fac54 commit 7c0af6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/character_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def get_spicy_count(chats) -> dict:
}
for chat in chats:
spicy = chat.spicy
if spicy is None:
continue # spicy가 None인 경우 해당 chat을 건너뜁니다.
if 0 <= spicy < 2:
spicy_count["0-2"] += 1
elif 2 <= spicy < 4:
Expand Down

0 comments on commit 7c0af6e

Please sign in to comment.