Skip to content

Commit

Permalink
parse conceptuuidformat from json in case of false, re #10787
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Apr 18, 2024
1 parent 15b670c commit 3de8ad4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arches/app/search/search_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def __init__(self, search_request=None):
self.report_link = search_request.GET.get("reportlink", False)
self.format = search_request.GET.get("format", "tilecsv")
self.concept_uuid_format = search_request.GET.get("conceptuuidformat", False)
if self.concept_uuid_format:
try:
self.concept_uuid_format = json.loads(self.concept_uuid_format)
except:
pass
self.compact = search_request.GET.get("compact", True)
self.precision = int(search_request.GET.get("precision", 5))
if self.format == "shp" and self.compact is not True:
Expand Down

0 comments on commit 3de8ad4

Please sign in to comment.