[locations] I think proximity logic was reversed

This commit is contained in:
2024-02-18 01:39:53 -05:00
parent df3424c68f
commit 504620fc89

View File

@ -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