Przeglądaj źródła

[scrobbles] Fix bad update fields call

Colin Powell 1 rok temu
rodzic
commit
dd0ce967c8
1 zmienionych plików z 1 dodań i 1 usunięć
  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={