mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 17:56:07 +00:00
v2.5.0: add legacy state migration
This commit is contained in:
@@ -348,6 +348,8 @@ def template_display_name(template_id: str) -> str:
|
||||
"""Resolve a template id to a human-friendly name from catalog/config."""
|
||||
if not template_id:
|
||||
return ""
|
||||
if template_id in ("deployed_site", "existing_site"):
|
||||
return "Existing deployed site"
|
||||
if template_id.startswith("custom_"):
|
||||
config = load_json(GOTELEGRAM_CONFIG) or {}
|
||||
source = config.get("template_source", "")
|
||||
|
||||
Reference in New Issue
Block a user