mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 14:31:15 +00:00
fix: ids on homepage store
This commit is contained in:
1 parent
f512b65312
commit
fe09a8a8ae
1 file changed
+1
-3
@@ -10,9 +10,7 @@ class HomepageStore:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def set_artist_mixes(cls, mixes: list[Mix], userid: int = 1):
|
def set_artist_mixes(cls, mixes: list[Mix], userid: int = 1):
|
||||||
print(f"⭐⭐⭐⭐ Setting {len(mixes)} artist mixes")
|
idmap = {mix.id[1:]: mix for mix in mixes}
|
||||||
print("mix artists", [mix.title for mix in mixes])
|
|
||||||
idmap = {mix.id: mix for mix in mixes}
|
|
||||||
cls.entries["artist_mixes"][userid] = idmap
|
cls.entries["artist_mixes"][userid] = idmap
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in new issue
Block a user