Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 77abf30

Browse files
committed
Fix saving profile colors
1 parent 51b1e55 commit 77abf30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/restapi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,13 @@ def update_profile(self, request):
417417
if "email" in request.args:
418418
u.email = request.args["email"][0].decode("utf8")
419419
if "primary_color" in request.args:
420-
u.primary_color = int(request.args["primary_color"][0])
420+
p.profile.primary_color = int(request.args["primary_color"][0])
421421
if "secondary_color" in request.args:
422-
u.secondary_color = int(request.args["secondary_color"][0])
422+
p.profile.secondary_color = int(request.args["secondary_color"][0])
423423
if "background_color" in request.args:
424-
u.background_color = int(request.args["background_color"][0])
424+
p.profile.background_color = int(request.args["background_color"][0])
425425
if "text_color" in request.args:
426-
u.text_color = int(request.args["text_color"][0])
426+
p.profile.text_color = int(request.args["text_color"][0])
427427
if "avatar" in request.args:
428428
u.avatar_hash = unhexlify(request.args["avatar"][0])
429429
if "header" in request.args:

0 commit comments

Comments
 (0)