Skip to content

Commit

Permalink
fix last entry of results not being included (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspedrosa authored Mar 15, 2022
1 parent e184976 commit b0adca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geowebservice/geodatabase/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def detail(request, geonameid):

def buildJson(response_object, response_data):
""" Builds the answer with multiples geonames entries"""
for i in range(0, len(response_object) - 1):
response_data = response_data + addEntry(response_object[i])
for entry in response_object:
response_data = response_data + addEntry(entry)
return response_data


Expand Down

0 comments on commit b0adca3

Please sign in to comment.