Review fixes
- Remove redundant print statements - Update endpoint for csv download
This commit is contained in:
parent
460fcb5c09
commit
d5d029cd2f
3 changed files with 3 additions and 6 deletions
|
@ -24,10 +24,7 @@ def get_location_filters(request):
|
|||
coordinates = request.query_params.get('coordinates')
|
||||
|
||||
if coordinates is not None:
|
||||
print('coords not none')
|
||||
eco_district_layer = ecological_district_coordinate_filter(
|
||||
coordinates).first()
|
||||
print(eco_district_layer)
|
||||
eco_district_layer = ecological_district_coordinate_filter(coordinates).first()
|
||||
point = get_point_from_coordinates(coordinates)
|
||||
|
||||
filter_rows.append(['Point coordinates:', point])
|
||||
|
|
|
@ -26,7 +26,7 @@ router.register(r'ecologicaldistrict', views.EcologicalDistrictViewSet, basename
|
|||
router.register(r'address', views.LINZPropertyViewSet, basename='address')
|
||||
router.register(r'habitats', views.HabitatViewSet, basename='habitats')
|
||||
router.register(r'habitatimage', views.HabitatImageViewSet,basename='habitatimage')
|
||||
router.register(r'downloadcsv', views.CSVDownloadView ,basename='downloadcsv')
|
||||
router.register(r'download/csv', views.CSVDownloadView ,basename='downloadcsv')
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
|
|
@ -7,7 +7,7 @@ const PlantRepository = {
|
|||
},
|
||||
|
||||
getPlantsCSV(filters) {
|
||||
return Repository.get('/downloadcsv/', { params: filters })
|
||||
return Repository.get('/download/csv/', { params: filters })
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue