Skip to content

Commit

Permalink
Add check if download is none (#3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jowlee authored May 27, 2022
1 parent fd4b3b6 commit 4cd9c07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discovery-provider/src/queries/get_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def get_tracks_and_ids():
for track in tracks:
if track["user"][0]["is_deactivated"] or track["is_delete"]:
track["track_segments"] = []
track["download"]["cid"] = None
if track["download"] is not None:
track["download"]["cid"] = None

tracks = populate_track_metadata(session, track_ids, tracks, current_user_id)

Expand Down

0 comments on commit 4cd9c07

Please sign in to comment.