Browse Source

Fix timestamp updated with every tick

Colin Powell 2 năm trước cách đây
mục cha
commit
6e97298949
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      vrobbler/apps/scrobbles/models.py

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

@@ -726,6 +726,7 @@ class Scrobble(TimeStampedModel):
                 scrobble_data.pop("timestamp", None) or timezone.now()
             )
 
+        scrobble_data.pop("timestamp")
         update_fields = []
         for key, value in scrobble_data.items():
             setattr(self, key, value)