mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 13:54:07 +00:00
Removed unused variable, fixed connection
This commit is contained in:
committed by
Sarah Hoffmann
parent
d231ff60ed
commit
ba6cdd875d
@@ -179,7 +179,7 @@ class Connection(psycopg2.extensions.connection):
|
||||
""" Return True if the hstore extension is loaded in the database.
|
||||
"""
|
||||
with self.cursor() as cur:
|
||||
cur.execute('SELECT extname FROM pg_extension WHERE extname = %s', (extension_name))
|
||||
cur.execute('SELECT extname FROM pg_extension WHERE extname = %s', (extension_name, ))
|
||||
return cur.rowcount > 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user