From ec7f383c43bdbe0301756fc13296e394f652b3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=93=E6=9C=88=E5=BD=92=E5=B0=98?= Date: Sun, 16 Feb 2025 00:22:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=B9=B1=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/login.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/login.py b/controller/login.py index 835f76b..f86983a 100644 --- a/controller/login.py +++ b/controller/login.py @@ -221,6 +221,8 @@ class LoginController: result.pop("name") if result["children"] == []: result.pop("children") + else: + result["children"] = sorted(result["children"], key=lambda x: x["meta"]["rank"]) break return result