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

[scrobbles] Fix bad update fields call

Colin Powell пре 1 година
родитељ
комит
dd0ce967c8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      vrobbler/apps/scrobbles/models.py

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

@@ -964,7 +964,7 @@ class Scrobble(TimeStampedModel):
                 scrobble.scrobble_log
                 + "\nLocation {location.id} too close to this scrobble"
             )
-            scrobble.save(update_fields=[scrobble_log])
+            scrobble.save(update_fields=["scrobble_log"])
             logger.info(
                 f"[scrobbling] finished - found existing named location",
                 extra={