diff --git a/CHANGELOG.md b/CHANGELOG.md index 1553ab0a..f259eb1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 2.11.1 - 2024-10-14 + +* Improve the server information handler + ## 2.11.0 - 2024-10-03 * Raise QGIS minimum version to QGIS 3.22 diff --git a/lizmap_server/server_info_handler.py b/lizmap_server/server_info_handler.py index 3a2d286d..01650b1b 100755 --- a/lizmap_server/server_info_handler.py +++ b/lizmap_server/server_info_handler.py @@ -108,7 +108,7 @@ def _handleRequest(self, context): for expected in EXPECTED_PLUGINS: if expected not in plugins: plugins[expected] = { - 'version': 'not found', + 'version': 'Not found', 'name': expected, } @@ -116,7 +116,7 @@ def _handleRequest(self, context): allocated_ressources = os.getenv("LZM_ALLOCATION_MODE", "") if allocated_ressources != "": if allocated_ressources == "shared": - version = 'Not available on this Lizmap Cloud plan, only on a higher plan : standard or advanced' + version = 'Not available on this Lizmap Cloud plan, only on a higher plan : "Standard" or "Advanced"' else: # allocated_ressources == "dedicated" version = 'Not installed, you can ask a commercial proposal to Lizmap Cloud' diff --git a/test/test_server_info.py b/test/test_server_info.py index daf6aecc..935dc100 100644 --- a/test/test_server_info.py +++ b/test/test_server_info.py @@ -53,7 +53,7 @@ def test_lizmap_server_info(client): assert len(json_content['qgis_server']['plugins'].keys()) == len(expected_plugins) for plugin in expected_plugins: assert json_content['qgis_server']['plugins'][plugin]['name'] == plugin - assert json_content['qgis_server']['plugins'][plugin]['version'] == 'not found' + assert json_content['qgis_server']['plugins'][plugin]['version'] == 'Not found' assert len(json_content['qgis_server']['fonts']) >= 1