X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bab0ca060ff224091b20a0ac808a3febaba04b1..754ff15ebd798aad0a2b7add81ea0e6001ca8625:/src/nominatim_api/status.py diff --git a/src/nominatim_api/status.py b/src/nominatim_api/status.py index ec6ce5d6..f9a9a8eb 100644 --- a/src/nominatim_api/status.py +++ b/src/nominatim_api/status.py @@ -14,7 +14,8 @@ import dataclasses import sqlalchemy as sa from .connection import SearchConnection -from .version import NOMINATIM_API_VERSION, parse_version +from .version import NOMINATIM_API_VERSION + @dataclasses.dataclass class StatusResult: @@ -44,7 +45,7 @@ async def get_status(conn: SearchConnection) -> StatusResult: # Database version try: - status.database_version = parse_version(await conn.get_property('database_version')) + status.database_version = await conn.get_property('database_version') except ValueError: pass