Skip to content

Commit

Permalink
Fix dictionary comp in get_feed (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
piazzatron committed Oct 9, 2020
1 parent 418e25b commit 494f5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery-provider/src/queries/get_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_feed(args):
# get all track objects for track ids
playlist_tracks = get_unpopulated_tracks(session, playlist_track_ids)
playlist_tracks_dict = {
track.track_id: track for track in playlist_tracks}
track["track_id"]: track for track in playlist_tracks}

# get all track ids that have same owner as playlist and created in "same action"
# "same action": track created within [x time] before playlist creation
Expand Down

0 comments on commit 494f5cb

Please sign in to comment.