From fb3620a378331e7d2a729b5fa3ac642299080eb5 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Tue, 11 Nov 2025 22:31:58 +1100 Subject: [PATCH] BE: Better upgrade message formating Signed-off-by: jokob-sk --- server/initialise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/initialise.py b/server/initialise.py index 891ad452..4389ebb3 100755 --- a/server/initialise.py +++ b/server/initialise.py @@ -673,7 +673,7 @@ def importConfigs(pm, db, all_plugins): # Check if app was upgraded buildTimestamp, new_version = getBuildTimeStampAndVersion() - prev_version = conf.VERSION + prev_version = conf.VERSION if conf.VERSION != '' else "unknown" mylog('debug', [f"[Config] buildTimestamp | prev_version | .VERSION file: '{buildTimestamp}|{prev_version}|{new_version}'"]) @@ -684,7 +684,7 @@ def importConfigs(pm, db, all_plugins): # ccd(key, default, config_dir, name, inputtype, options, group, events=None, desc="", setJsonMetadata=None, overrideTemplate=None, forceDefault=False) ccd('VERSION', new_version , c_d, '_KEEP_', '_KEEP_', '_KEEP_', '_KEEP_', None, "_KEEP_", None, None, True) - write_notification(f'[Upgrade] : App upgraded from {prev_version} to {new_version} 🚀 Please clear the cache:
  1. Click OK below
  2. Clear the browser cache (shift + browser refresh button)
  3. Clear app cache with the (reload) button in the header
  4. Go to Settings and click Save
Check out new features and what has changed in the 📓 release notes.', 'interrupt', timeNowDB()) + write_notification(f'[Upgrade] : App upgraded from {prev_version} to {new_version} 🚀 Please clear the cache:
  1. Click OK below
  2. Clear the browser cache (shift + browser refresh button)
  3. Clear app cache with the (reload) button in the header
  4. Go to Settings and click Save
Check out new features and what has changed in the 📓 release notes.', 'interrupt', timeNowDB()) # -----------------