瀏覽代碼

[music] Use found name to look it up

Colin Powell 3 天之前
父節點
當前提交
6ab7745151
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vrobbler/apps/music/models.py

+ 1 - 1
vrobbler/apps/music/models.py

@@ -229,7 +229,7 @@ class Artist(TimeStampedModel):
             alt_name = found_name
 
         artist = cls.objects.filter(
-            name=name, musicbrainz_id=musicbrainz_id
+            name=found_name, musicbrainz_id=musicbrainz_id
         ).first()
         if not artist:
             artist = cls.objects.create(