1
0
mirror of synced 2024-11-28 07:50:51 +01:00

Fix logic error in saving favorites for IIDX

This commit is contained in:
seth 2021-06-11 11:06:46 -05:00 committed by Jennifer Taylor
parent a62cc92717
commit 6c41c826d9
2 changed files with 20 additions and 18 deletions

View File

@ -2051,16 +2051,17 @@ class IIDXCannonBallers(IIDXCourse, IIDXBase):
}) })
# Filter out empty charts # Filter out empty charts
singles = [single for single in singles if single['id'] != 0] if name is not None:
doubles = [double for double in doubles if double['id'] != 0] singles = [single for single in singles if single['id'] != 0]
doubles = [double for double in doubles if double['id'] != 0]
newprofile.replace_dict( newprofile.replace_dict(
name, name,
{ {
'single': singles, 'single': singles,
'double': doubles, 'double': doubles,
}, },
) )
# DJ rank saving # DJ rank saving
for dj_rank in request.children: for dj_rank in request.children:

View File

@ -1768,16 +1768,17 @@ class IIDXRootage(IIDXCourse, IIDXBase):
}) })
# Filter out empty charts # Filter out empty charts
singles = [single for single in singles if single['id'] != 0] if name is not None:
doubles = [double for double in doubles if double['id'] != 0] singles = [single for single in singles if single['id'] != 0]
doubles = [double for double in doubles if double['id'] != 0]
newprofile.replace_dict( newprofile.replace_dict(
name, name,
{ {
'single': singles, 'single': singles,
'double': doubles, 'double': doubles,
}, },
) )
# DJ rank saving # DJ rank saving
for dj_rank in request.children: for dj_rank in request.children: