Browse Source

[scrobbles] Fix bad update fields call

Colin Powell 1 năm trước cách đây
mục cha
commit
dd0ce967c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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={