X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4da4cbfe27a576ae011430b2de205c74435e241b..1f0796778754d8df0dfab9dd01302e26a397f064:/src/nominatim_db/db/properties.py diff --git a/src/nominatim_db/db/properties.py b/src/nominatim_db/db/properties.py index 3549382f..37d9e656 100644 --- a/src/nominatim_db/db/properties.py +++ b/src/nominatim_db/db/properties.py @@ -9,7 +9,8 @@ Query and access functions for the in-database property table. """ from typing import Optional, cast -from .connection import Connection +from .connection import Connection, table_exists + def set_property(conn: Connection, name: str, value: str) -> None: """ Add or replace the property with the given name. @@ -31,7 +32,7 @@ def get_property(conn: Connection, name: str) -> Optional[str]: """ Return the current value of the given property or None if the property is not set. """ - if not conn.table_exists('nominatim_properties'): + if not table_exists(conn, 'nominatim_properties'): return None with conn.cursor() as cur: