Revert "[charts] Async creating of new charts"

This reverts commit 44c6e014f5.
This commit is contained in:
2026-03-23 12:35:52 -04:00
parent 44c6e014f5
commit e36a0726c8
3 changed files with 35 additions and 46 deletions

View File

@ -17,6 +17,7 @@ def user(db):
@pytest.fixture
def scrobble_data(user, db):
from scrobbles.models import Scrobble
from music.models import Track, Artist, Album
artist = Artist.objects.create(name="Test Artist")
@ -132,7 +133,7 @@ def test_build_yearly_charts_creates_yearly_record(user, scrobble_data):
@pytest.mark.django_db
def test_build_charts_ranks_by_count(user, scrobble_data):
from scrobbles.models import Scrobble
from music.models import Track
from music.models import Track, Artist
track1 = scrobble_data["track"]
track2 = Track.objects.create(
@ -182,7 +183,7 @@ def test_build_charts_ranks_by_count(user, scrobble_data):
@pytest.mark.django_db
def test_build_daily_charts_deletes_existing_daily_record(user, scrobble_data):
from scrobbles.models import Scrobble
from music.models import Track
from music.models import Track, Artist
track1 = scrobble_data["track"]
track2 = Track.objects.create(
@ -227,7 +228,7 @@ def test_build_daily_charts_deletes_existing_daily_record(user, scrobble_data):
@pytest.mark.django_db
def test_build_monthly_charts_deletes_existing_monthly_record(user, scrobble_data):
from scrobbles.models import Scrobble
from music.models import Track
from music.models import Track, Artist
track1 = scrobble_data["track"]
track2 = Track.objects.create(