forked from Hay1tsme/artemis
wacca: fix stageup list not populating correctly, fix #3
This commit is contained in:
parent
a0739436cc
commit
1567ec23ab
@ -356,7 +356,6 @@ class WaccaBase():
|
|||||||
return resp.make()
|
return resp.make()
|
||||||
|
|
||||||
self.logger.info(f"Get trial info for user {req.profileId}")
|
self.logger.info(f"Get trial info for user {req.profileId}")
|
||||||
|
|
||||||
stages = self.data.score.get_stageup(user_id, self.version)
|
stages = self.data.score.get_stageup(user_id, self.version)
|
||||||
if stages is None:
|
if stages is None:
|
||||||
stages = []
|
stages = []
|
||||||
@ -377,10 +376,10 @@ class WaccaBase():
|
|||||||
|
|
||||||
tmp.append(stage_info)
|
tmp.append(stage_info)
|
||||||
|
|
||||||
for x in range(len(resp.stageList)):
|
for x in range(len(tmp)):
|
||||||
if resp.stageList[x].danLevel >= 10 and (resp.stageList[x + 1].clearStatus >= 1 or resp.stageList[x].clearStatus >= 1):
|
if tmp[x].danLevel >= 10 and (tmp[x + 1].clearStatus >= 1 or tmp[x].clearStatus >= 1):
|
||||||
resp.stageList.append(tmp[x])
|
resp.stageList.append(tmp[x])
|
||||||
elif resp.stageList[x].danLevel < 10:
|
elif tmp[x].danLevel < 10:
|
||||||
resp.stageList.append(tmp[x])
|
resp.stageList.append(tmp[x])
|
||||||
|
|
||||||
return resp.make()
|
return resp.make()
|
||||||
|
Loading…
Reference in New Issue
Block a user