mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
620974561c
+ improve: collision of hashes on the favorite table + rename pages to collections + bump mix sleep time from 6hrs to 12hrs
26 lines
616 B
Python
26 lines
616 B
Python
from app.crons.cron import CronJob
|
|
from app.lib.recipes.artistmixes import ArtistMixes
|
|
from app.lib.recipes.because import BecauseYouListened
|
|
|
|
|
|
class Mixes(CronJob):
|
|
"""
|
|
This cron job creates mixes displayed on the homepage.
|
|
"""
|
|
|
|
name: str = "mixes"
|
|
hours: int = 12
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
def run(self):
|
|
"""
|
|
Creates the artist mixes
|
|
"""
|
|
ArtistMixes()
|
|
|
|
# INFO: Because you listened to artist items are generated using
|
|
# the artist mixes, so run them after the artist mixes are created.
|
|
BecauseYouListened()
|