浏览代码

[scrobbles] Fix timestamp log marker for locations

Colin Powell 11 月之前
父节点
当前提交
0fa89af1d9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      vrobbler/apps/scrobbles/models.py

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

@@ -1043,8 +1043,9 @@ class Scrobble(TimeStampedModel):
 
         if existing_locations := location.in_proximity(named=True):
             existing_location = existing_locations.first()
+            ts = int(pendulum.now().timestamp())
             scrobble.log[
-                pendulum.now().timestamp
+                ts
             ] = f"Location {location.id} too close to this scrobble"
             scrobble.save(update_fields=["log"])
             logger.info(