[locations] Try to fix geolocs finally

This commit is contained in:
2024-02-11 00:10:50 -05:00
parent ca434cb08a
commit 949416059d
2 changed files with 21 additions and 19 deletions

View File

@ -98,15 +98,12 @@ class GeoLocation(ScrobblableMixin):
for point in past_points:
loc_diff = self.loc_diff((point.lat, point.lon))
if (
loc_diff
and loc_diff[0] < GEOLOC_PROXIMITY
and loc_diff[1] < GEOLOC_PROXIMITY
loc_diff[0] > GEOLOC_PROXIMITY
or loc_diff[1] > GEOLOC_PROXIMITY
):
all_moves.append(True)
else:
all_moves.append(False)
if not False in all_moves:
if True in all_moves:
has_moved = True
return has_moved