Skip to content

Commit

Permalink
fix stats type check
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Jan 6, 2025
1 parent 6758b44 commit 9e0b43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listenbrainz/spark/request_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def request_user_stats(type_, range_, entity, database):
if type_ in ["entity", "listener"] and entity:
params["entity"] = entity

if not database and type_ != entity:
if not database and type_ != "entity":
today = date.today().strftime("%Y%m%d")
if type_ == "listeners":
prefix = f"{entity}_listeners"
Expand Down

0 comments on commit 9e0b43b

Please sign in to comment.