X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..882fb16881a862c372337708e190a441d82eb495:/src/nominatim_db/db/properties.py diff --git a/src/nominatim_db/db/properties.py b/src/nominatim_db/db/properties.py index 3549382f..0e017ead 100644 --- a/src/nominatim_db/db/properties.py +++ b/src/nominatim_db/db/properties.py @@ -9,7 +9,7 @@ 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 +31,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: