Преглед изворни кода

[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(