Skip to content

Commit

Permalink
allow some "reasonable" huge number of export
Browse files Browse the repository at this point in the history
  • Loading branch information
naknomum committed Feb 1, 2024
1 parent d6243cb commit 7bc9e50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/modules/encounters/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class EncounterExport(Resource):
)
def post(self):
search = request.get_json()
encs = Encounter.elasticsearch(search)
encs = Encounter.elasticsearch(search, limit=15000)
if not encs:
abort(400, 'No results to export')
from flask import send_file
Expand Down
2 changes: 1 addition & 1 deletion app/modules/individuals/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class IndividualExport(Resource):
)
def post(self):
search = request.get_json()
indivs = Individual.elasticsearch(search)
indivs = Individual.elasticsearch(search, limit=15000)

Check warning on line 275 in app/modules/individuals/resources.py

View check run for this annotation

Codecov / codecov/patch

app/modules/individuals/resources.py#L275

Added line #L275 was not covered by tests
if not indivs:
abort(400, 'No results to export')
from flask import send_file
Expand Down
2 changes: 1 addition & 1 deletion app/modules/sightings/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class SightingExport(Resource):
)
def post(self):
search = request.get_json()
sights = Sighting.elasticsearch(search)
sights = Sighting.elasticsearch(search, limit=15000)
if not sights:
abort(400, 'No results to export')
from flask import send_file
Expand Down

0 comments on commit 7bc9e50

Please sign in to comment.