浏览代码

[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={