From 76532eeae36df02176a11817d949e29abc1ae591 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Tue, 20 Oct 2020 08:33:19 +0800 Subject: [PATCH] Update for WA --- libs/webadmin/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/webadmin/server.py b/libs/webadmin/server.py index 4f13156..e04f4b6 100644 --- a/libs/webadmin/server.py +++ b/libs/webadmin/server.py @@ -134,6 +134,7 @@ class Yuuki_WebAdmin: "name": Yuuki_Handle.profile.displayName, "status": Yuuki_Handle.profile.statusMessage, "picture": f"{Yuuki_Handle.LINE_Media_server}/{Yuuki_Handle.profile.pictureStatus}" + if Yuuki_Handle.profile.pictureStatus is not None else None, } if request.method == "PUT" and "name" in request.values and "status" in request.values: Yuuki_Handle.profile.displayName = request.values["name"] @@ -204,7 +205,8 @@ class Yuuki_WebAdmin: "id": profile.mid, "name": profile.displayName, "status": profile.statusMessage, - "picture": f"{Yuuki_Handle.LINE_Media_server}/{profile.pictureStatus}", + "picture": f"{Yuuki_Handle.LINE_Media_server}/{profile.pictureStatus}" + if profile.pictureStatus is not None else None, } return [