[charts] Big revamp of the charts app
All checks were successful
build & deploy / test (push) Successful in 1m53s
build & deploy / deploy (push) Successful in 24s

This commit is contained in:
2026-03-21 18:13:34 -04:00
parent 565adfe58e
commit d5d27256f8
31 changed files with 2006 additions and 1100 deletions

View File

@ -2,7 +2,7 @@ import os
import sys
from pathlib import Path
from celery.schedules import crontab
import dj_database_url
from dotenv import load_dotenv
@ -116,6 +116,17 @@ CELERY_RESULT_BACKEND = "django-db"
CELERY_TIMEZONE = os.getenv("VROBBLER_TIME_ZONE", "America/New_York")
CELERY_TASK_TRACK_STARTED = True
CELERY_BEAT_SCHEDULE = {
"build-yesterdays-charts": {
"task": "scrobbles.tasks.create_yesterdays_charts",
"schedule": crontab(hour=0, minute=5),
},
"build-missing-charts-weekly": {
"task": "scrobbles.tasks.build_missing_charts_for_all_users",
"schedule": crontab(hour=1, minute=0, day_of_week=0),
},
}
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
@ -137,6 +148,7 @@ INSTALLED_APPS = [
"profiles",
"scrobbles",
"people",
"charts",
"videos",
"music",
"podcasts",