first recommendation draft

This commit is contained in:
cwilvx
2024-10-25 23:26:08 +03:00
parent a26373669d
commit c4a73f0d63
15 changed files with 393 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
from app.crons.cron import CronJob
from app.plugins.mixes import MixesPlugin
from app.store.homepage import HomepageStore
class Mixes(CronJob):
def __init__(self):
super().__init__("mixes", 5)
def run(self):
print("⭐⭐⭐⭐ Mixes cron job running")
mixes = MixesPlugin()
artist_mixes = mixes.get_artists()
HomepageStore.set_artist_mixes(artist_mixes)