wacca: fix stageup list not populating correctly, fix #3

This commit is contained in:
Hay1tsme 2023-03-01 23:24:36 -05:00
parent a0739436cc
commit 1567ec23ab
1 changed files with 3 additions and 4 deletions

View File

@ -356,7 +356,6 @@ class WaccaBase():
return resp.make()
self.logger.info(f"Get trial info for user {req.profileId}")
stages = self.data.score.get_stageup(user_id, self.version)
if stages is None:
stages = []
@ -377,10 +376,10 @@ class WaccaBase():
tmp.append(stage_info)
for x in range(len(resp.stageList)):
if resp.stageList[x].danLevel >= 10 and (resp.stageList[x + 1].clearStatus >= 1 or resp.stageList[x].clearStatus >= 1):
for x in range(len(tmp)):
if tmp[x].danLevel >= 10 and (tmp[x + 1].clearStatus >= 1 or tmp[x].clearStatus >= 1):
resp.stageList.append(tmp[x])
elif resp.stageList[x].danLevel < 10:
elif tmp[x].danLevel < 10:
resp.stageList.append(tmp[x])
return resp.make()