1
0
mirror of synced 2025-01-31 12:13:49 +01:00

Fix possible logic error in saving favorites for IIDX.

This commit is contained in:
Jennifer Taylor 2021-05-31 18:09:08 +00:00
parent 4a1579b099
commit 732e2afb42
2 changed files with 20 additions and 18 deletions

View File

@ -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')

View File

@ -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: