From 0fa89af1d921fee368e73c64e29559a8029d66d6 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 7 Jun 2024 01:27:58 -0400 Subject: [PATCH] [scrobbles] Fix timestamp log marker for locations --- vrobbler/apps/scrobbles/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 928dc5a..f11495a 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/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(