Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LB-1718: fix top discoveries playlist #3123

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion listenbrainz_spark/year_in_music/top_discoveries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from more_itertools import chunked

from listenbrainz_spark.constants import LAST_FM_FOUNDING_YEAR
from listenbrainz_spark.path import RECORDING_ARTIST_DATAFRAME
from listenbrainz_spark.stats import run_query
from listenbrainz_spark.utils import get_listens_from_dump
Expand Down Expand Up @@ -66,7 +67,7 @@ def generate_top_discoveries(year):


def create_tracks_of_the_year(year):
start = datetime(year, 1, 1)
start = datetime(LAST_FM_FOUNDING_YEAR, 1, 1)
end = datetime.combine(date(year, 12, 31), time.max)
listens = get_listens_from_dump(start, end)
listens.createOrReplaceTempView("listens_for_tracks_of_year")
Expand Down
Loading