Skip to content

Commit 1c6b026

Browse files
added hdx search option
1 parent b8337ff commit 1c6b026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,14 +618,14 @@ def request_geonames(request):
618618
keyword = request.GET.get("q")
619619
response = {"totalResultsCount": 0, "geonames": []}
620620
if not (
621-
str(keyword).lower().startswith("boundary")
621+
str(keyword).lower().startswith("hdx")
622622
or str(keyword).lower().startswith("osm")
623623
or str(keyword).lower().startswith("tm")
624624
):
625625
response = requests.get(geonames_url, params=payload).json()
626626
assert isinstance(response, dict)
627627
if RAW_DATA_API_URL:
628-
if str(keyword).lower().startswith("boundary"):
628+
if str(keyword).lower().startswith("hdx"):
629629
lst = keyword.split(" ")
630630
if len(lst) > 1:
631631
keyword = lst[1]

0 commit comments

Comments
 (0)