]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/result_formatter/v1.py
add sanic development server implementation
[nominatim.git] / nominatim / result_formatter / v1.py
index d14e3f6c4105209faf387f0446a14bc2f4a981a2..081f451e5f01ad5b2ea74e5d5022eb2a76d2d37b 100644 (file)
@@ -28,7 +28,7 @@ def _format_status_json(result: StatusResult) -> str:
     out['status'] = result.status
     out['message'] = result.message
     if result.data_updated is not None:
-        out['data_updated'] = result.data_updated
+        out['data_updated'] = result.data_updated.isoformat()
     out['software_version'] = result.software_version
     if result.database_version is not None:
         out['database_version'] = result.database_version