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:
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:
# 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