Skip to content

Commit

Permalink
Use defaults for trending track checks (#7279)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie authored Jan 23, 2024
1 parent 20f9ebd commit 0e88152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discovery-provider/src/queries/query_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def _populate_gated_track_metadata(session, tracks, current_user_id):
gated_track_access = {track["track_id"]: defaultdict() for track in tracks}
gated_tracks = list(
filter(
lambda track: track["stream_conditions"] or track["download_conditions"],
lambda track: track.get("stream_conditions") or track.get("download_conditions"),
tracks,
)
)
Expand Down

0 comments on commit 0e88152

Please sign in to comment.