Skip to content

Commit

Permalink
Closed #990 fix to geofilter after renaming api fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rcboufleur authored and glaubervila committed Apr 19, 2024
1 parent ae5b6a3 commit f8f0898
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/tno/views/geo_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def create_async_job(self):

self.apply_visibility(
queryset,
float(self.params["lat"]),
float(self.params["long"]),
float(self.params["radius"]),
float(self.params["latitude"]),
float(self.params["longitude"]),
float(self.params["location_radius"]),
)

def apply_visibility(self, queryset, lat: float, long: float, radius: float):
Expand Down
6 changes: 3 additions & 3 deletions backend/tno/views/occultation.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ class OccultationViewSet(viewsets.ReadOnlyModelViewSet):
ordering = ("date_time",)

def check_user_location_params(self, params):
lat = params.get("lat", None)
long = params.get("long", None)
radius = params.get("radius", None)
lat = params.get("latitude", None)
long = params.get("longitude", None)
radius = params.get("location_radius", None)

if None in [lat, long, radius]:
return lat, long, radius
Expand Down

0 comments on commit f8f0898

Please sign in to comment.