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