Removed unused variable, fixed connection

This commit is contained in:
Robbe Haesendonck
2023-09-27 09:24:04 +02:00
committed by Sarah Hoffmann
parent d231ff60ed
commit ba6cdd875d
2 changed files with 2 additions and 3 deletions

View File

@@ -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