feat: implement settings synchronization with backend and migrate legacy settings

This commit is contained in:
Will Miao
2025-07-29 20:29:19 +08:00
parent a5808193a6
commit 4081b7f022
4 changed files with 68 additions and 79 deletions

View File

@@ -167,6 +167,9 @@ class MiscRoutes:
# Validate and update settings
for key, value in data.items():
if value == settings.get(key):
# No change, skip
continue
# Special handling for example_images_path - verify path exists
if key == 'example_images_path' and value:
if not os.path.exists(value):