mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
migrate homepage items to homepage routine
+ add Mix db model
This commit is contained in:
+9
-6
@@ -1,4 +1,5 @@
|
||||
from app.crons.cron import CronJob
|
||||
from app.lib.recipes import ArtistMixes
|
||||
from app.plugins.mixes import MixesPlugin
|
||||
from app.store.homepage import HomepageStore
|
||||
|
||||
@@ -16,12 +17,14 @@ class Mixes(CronJob):
|
||||
Creates the artist mixes
|
||||
"""
|
||||
print("⭐⭐⭐⭐ Mixes cron job running")
|
||||
mixes = MixesPlugin()
|
||||
ArtistMixes().run()
|
||||
# mixes = MixesPlugin()
|
||||
|
||||
if not mixes.enabled:
|
||||
return
|
||||
# if not mixes.enabled:
|
||||
# return
|
||||
|
||||
artist_mixes = mixes.create_artist_mixes()
|
||||
|
||||
if artist_mixes:
|
||||
HomepageStore.set_artist_mixes(artist_mixes)
|
||||
# artist_mixes = mixes.create_artist_mixes()
|
||||
|
||||
# if artist_mixes:
|
||||
# HomepageStore.set_artist_mixes(artist_mixes)
|
||||
|
||||
Reference in New Issue
Block a user