Sfoglia il codice sorgente

[scrobbles] Fix pendulum bug

Colin Powell 1 anno fa
parent
commit
1b5ffd2a3c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      vrobbler/apps/scrobbles/models.py

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

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