From b0adca3e97ad1b7a5ba50aedea6351c9e7f8d687 Mon Sep 17 00:00:00 2001 From: aspedrosa Date: Tue, 15 Mar 2022 15:27:26 +0000 Subject: [PATCH] fix last entry of results not being included (#21) --- geowebservice/geodatabase/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geowebservice/geodatabase/views.py b/geowebservice/geodatabase/views.py index 9c371b5..9e33315 100644 --- a/geowebservice/geodatabase/views.py +++ b/geowebservice/geodatabase/views.py @@ -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