Skip to content

Commit

Permalink
Rephrase sentences in server_info_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 15, 2024
1 parent 2e0c2b2 commit 9402f70
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lizmap_server/server_info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,18 @@ def _handleRequest(self, context):
}

# Lizmap Cloud allocated ressources
data_plotly = "DataPlotly"
allocated_ressources = os.getenv("LZM_ALLOCATION_MODE", "")
if allocated_ressources != "":
if allocated_ressources != "" and data_plotly not in plugins.keys():
if allocated_ressources == "shared":
version = 'Not available on this Lizmap Cloud plan, only on a higher plan : "Standard" or "Advanced"'
version = 'Not available on the "Basic" Lizmap Cloud plan'
else:
# allocated_ressources == "dedicated"
version = 'Not installed, you can ask a commercial proposal to Lizmap Cloud'
plugins["DataPlotly"] = {
version = 'Not installed'

plugins[data_plotly] = {
'version': version,
'name': "DataPlotly",
'name': data_plotly,
'homepage': 'https://github.com/ghtmtt/DataPlotly/blob/master/README.md',
}

Expand Down

0 comments on commit 9402f70

Please sign in to comment.