[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] send nominatim entries, even when they are not
From: |
David Decotigny |
Subject: |
[Maposmatic-dev] [PATCH] send nominatim entries, even when they are not lookup-able in the OSM DB |
Date: |
Sun, 20 Dec 2009 20:05:23 +0100 |
---
www/maposmatic/nominatim.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/www/maposmatic/nominatim.py b/www/maposmatic/nominatim.py
index e22c034..3a54a84 100644
--- a/www/maposmatic/nominatim.py
+++ b/www/maposmatic/nominatim.py
@@ -70,7 +70,6 @@ def _retrieve_missing_data_from_GIS(entries):
except psycopg2.OperationalError:
return entries
- retval = []
for entry in entries:
if ( (entry.get("class", None) != "boundary")
or (entry.get("type", None) != "administrative") ):
@@ -87,7 +86,6 @@ def _retrieve_missing_data_from_GIS(entries):
entry["ocitysmap_params"] = dict(table=table_name,
id=result[0][0],
admin_level=result[0][1])
- retval.append(entry)
break
- return retval
+ return entries
--
1.6.3.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Maposmatic-dev] [PATCH] send nominatim entries, even when they are not lookup-able in the OSM DB,
David Decotigny <=