From 61957ba9ef506a96442fede78f63185452c1e5d6 Mon Sep 17 00:00:00 2001 From: TLSM Date: Mon, 7 Nov 2022 16:15:25 -0500 Subject: [PATCH] Fix /settings/namecolor data key to match frontend. --- files/routes/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 0f6a0749f..d662a40eb 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -323,7 +323,7 @@ def set_color(v:User, attr:str, color:Optional[str]): @limiter.limit("1/second;30/minute;200/hour;1000/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') @auth_required def namecolor(v): - return set_color(v, "namecolor", request.values.get("color")) + return set_color(v, "namecolor", request.values.get("namecolor")) @app.post("/settings/themecolor") @limiter.limit("1/second;30/minute;200/hour;1000/day")