mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-08-25 20:04:25 -05:00
Fix logic error in saving favorites for IIDX
This commit is contained in:
@@ -2051,16 +2051,17 @@ class IIDXCannonBallers(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,
|
||||
},
|
||||
)
|
||||
|
||||
# DJ rank saving
|
||||
for dj_rank in request.children:
|
||||
|
||||
@@ -1768,16 +1768,17 @@ class IIDXRootage(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,
|
||||
},
|
||||
)
|
||||
|
||||
# DJ rank saving
|
||||
for dj_rank in request.children:
|
||||
|
||||
Reference in New Issue
Block a user