maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH] nominatim: do not close the database cursor mul


From: Thomas Petazzoni
Subject: [Maposmatic-dev] [PATCH] nominatim: do not close the database cursor multiple times
Date: Mon, 26 Mar 2012 17:20:29 +0200

Signed-off-by: Thomas Petazzoni <address@hidden>
---
 www/maposmatic/nominatim.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/maposmatic/nominatim.py b/www/maposmatic/nominatim.py
index 7fc3cdd..0b313b7 100644
--- a/www/maposmatic/nominatim.py
+++ b/www/maposmatic/nominatim.py
@@ -330,8 +330,8 @@ def _prepare_and_filter_entries(entries):
         # Enrich the entry with more info
         _prepare_entry(cursor, entry)
 
-        # Some cleanup
-        cursor.close()
+    # Some cleanup
+    cursor.close()
 
     return filtered_results
 
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]