mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
add test for new postcode import function
This commit is contained in:
@@ -33,8 +33,6 @@ class _TestingCursor(psycopg2.extras.DictCursor):
|
||||
""" Execute a query and return the result as a set of tuples.
|
||||
"""
|
||||
self.execute(sql, params)
|
||||
if self.rowcount == 1:
|
||||
return set(tuple(self.fetchone()))
|
||||
|
||||
return set((tuple(row) for row in self))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user