Skip to content

Commit

Permalink
Use list for mstQuestPhaseIndividuality
Browse files Browse the repository at this point in the history
  • Loading branch information
narumi147 committed Oct 22, 2024
1 parent 7ab3d49 commit 022030f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/core/nice/quest.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,13 @@ async def get_nice_quest_phase_no_rayshift(
],
# temp solution
"individuality": (
get_traits_list(raw_quest.mstQuestPhaseIndividuality.individuality)
get_traits_list(raw_quest.mstQuestPhaseIndividuality[0].individuality)
if not raw_quest.mstQuestPhase.individuality
and raw_quest.mstQuestPhaseIndividuality
else get_traits_list(raw_quest.mstQuestPhase.individuality)
),
"phaseIndividuality": (
get_traits_list(raw_quest.mstQuestPhaseIndividuality.individuality)
get_traits_list(raw_quest.mstQuestPhaseIndividuality[0].individuality)
if raw_quest.mstQuestPhaseIndividuality
else []
),
Expand Down
2 changes: 1 addition & 1 deletion app/schemas/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ class QuestEntity(BaseModelORJson):
class QuestPhaseEntity(QuestEntity):
mstQuestPhase: MstQuestPhase
mstQuestPhaseDetail: Optional[MstQuestPhaseDetail] = None
mstQuestPhaseIndividuality: MstQuestPhaseIndividuality | None = None
mstQuestPhaseIndividuality: list[MstQuestPhaseIndividuality] = []
mstQuestMessage: list[MstQuestMessage] = []
scripts: list[str]
mstStage: list[MstStage]
Expand Down

0 comments on commit 022030f

Please sign in to comment.