summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-17 22:34:39 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-17 22:34:39 -0500
commitc9e7eb40fc5f408cc4177763fd4e82a3632388a1 (patch)
tree67c65244398198be7d1501834fe1736e7ab2b7a5
parentc5465f7ceed37f1ba6575248e1035e1430e78921 (diff)
downloadimmich-frame-c9e7eb40fc5f408cc4177763fd4e82a3632388a1.tar.xz
immich-frame-c9e7eb40fc5f408cc4177763fd4e82a3632388a1.zip
cast config from api
-rw-r--r--flaskapi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/flaskapi.py b/flaskapi.py
index bb670a2..beabea0 100644
--- a/flaskapi.py
+++ b/flaskapi.py
@@ -3,6 +3,7 @@ from flask_socketio import SocketIO, emit
from flask_cors import CORS
from manager import PixMan
+from settings import Config
app = Flask(__name__, static_folder="static/dist", static_url_path="/")
@@ -60,7 +61,7 @@ def immich_redirect(path):
@api.route("/config/update", methods=["POST"])
def config_update():
- return { "success": PixMan().update_config(request.json) }
+ return { "success": PixMan().update_config(Config(**request.json)) }
@api.route("/config")
def config():