Commit 990972b5 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix query

parent b73d74c2
Pipeline #20529 passed with stages
in 3 minutes and 50 seconds
......@@ -88,7 +88,7 @@ def track(track_id_or_gid):
edits_accounts_by_id[account.id] = account
edits_track_mbids = db.session.query(TrackMBID).options(load_only('mbid')).\
filter(Account.id.in_(e.track_mbid_id for e in edits)).all()
filter(TrackMBID.id.in_(e.track_mbid_id for e in edits)).all()
edits_track_mbids_by_id = {}
for track_mbid in edits_track_mbids:
edits_track_mbids_by_id[track_mbid.id] = track_mbid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment