From 504620fc89b05e4b2019dd18c730b798f620dacd Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 18 Feb 2024 01:39:53 -0500 Subject: [PATCH] [locations] I think proximity logic was reversed --- vrobbler/apps/locations/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vrobbler/apps/locations/models.py b/vrobbler/apps/locations/models.py index bfa04ac..884ade8 100644 --- a/vrobbler/apps/locations/models.py +++ b/vrobbler/apps/locations/models.py @@ -97,11 +97,11 @@ class GeoLocation(ScrobblableMixin): loc_diff = self.loc_diff((point.lat, point.lon)) logger.info(f"[locations] {self} is {loc_diff} from {point}") if ( - loc_diff[0] > GEOLOC_PROXIMITY - or loc_diff[1] > GEOLOC_PROXIMITY + loc_diff[0] < GEOLOC_PROXIMITY + or loc_diff[1] < GEOLOC_PROXIMITY ): logger.info( - f"[locations] {loc_diff} is greater than proximity setting {GEOLOC_PROXIMITY}, moving" + f"[locations] {loc_diff} is less than proximity setting {GEOLOC_PROXIMITY}, we've moved" ) has_moved = True