mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-03-21 17:24:33 -05:00
Fix possible logic error in saving favorites for IIDX.
This commit is contained in:
parent
4a1579b099
commit
732e2afb42
|
|
@ -1959,16 +1959,17 @@ class IIDXCopula(IIDXCourse, IIDXBase):
|
|||
})
|
||||
|
||||
# Filter out empty charts
|
||||
singles = [single for single in singles if single['id'] != 0]
|
||||
doubles = [double for double in doubles if double['id'] != 0]
|
||||
if name is not None:
|
||||
singles = [single for single in singles if single['id'] != 0]
|
||||
doubles = [double for double in doubles if double['id'] != 0]
|
||||
|
||||
newprofile.replace_dict(
|
||||
name,
|
||||
{
|
||||
'single': singles,
|
||||
'double': doubles,
|
||||
},
|
||||
)
|
||||
newprofile.replace_dict(
|
||||
name,
|
||||
{
|
||||
'single': singles,
|
||||
'double': doubles,
|
||||
},
|
||||
)
|
||||
|
||||
# Step-up mode
|
||||
step = request.child('step')
|
||||
|
|
|
|||
|
|
@ -1970,16 +1970,17 @@ class IIDXSinobuz(IIDXCourse, IIDXBase):
|
|||
})
|
||||
|
||||
# Filter out empty charts
|
||||
singles = [single for single in singles if single['id'] != 0]
|
||||
doubles = [double for double in doubles if double['id'] != 0]
|
||||
if name is not None:
|
||||
singles = [single for single in singles if single['id'] != 0]
|
||||
doubles = [double for double in doubles if double['id'] != 0]
|
||||
|
||||
newprofile.replace_dict(
|
||||
name,
|
||||
{
|
||||
'single': singles,
|
||||
'double': doubles,
|
||||
},
|
||||
)
|
||||
newprofile.replace_dict(
|
||||
name,
|
||||
{
|
||||
'single': singles,
|
||||
'double': doubles,
|
||||
},
|
||||
)
|
||||
|
||||
# Ninja rank saving
|
||||
for ninja_rank in request.children:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user