X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/63da70685a6f0232b8f13bfa158772e035586347..e1041151348edf134499e3ba8549dd825dbcead9:/src/nominatim_api/status.py?ds=sidebyside diff --git a/src/nominatim_api/status.py b/src/nominatim_api/status.py index 614789ed..ea88a467 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, NominatimVersion, parse_version +from .version import NOMINATIM_API_VERSION @dataclasses.dataclass class StatusResult: @@ -24,7 +24,7 @@ class StatusResult: message: str software_version = NOMINATIM_API_VERSION data_updated: Optional[dt.datetime] = None - database_version: Optional[NominatimVersion] = None + database_version: Optional[str] = None async def get_status(conn: SearchConnection) -> StatusResult: @@ -44,7 +44,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