Explorar el Código

Fix timestamp updated with every tick

Colin Powell hace 2 años
padre
commit
6e97298949
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)