X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..122ecd46269d48a8b2aacba2474311c0400d2a9d:/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: