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