From 9363fb824a963b372145518964ed687dfc6dc393 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 14 Mar 2026 21:12:00 +0800 Subject: [PATCH] chore: ruff format --- astrbot/dashboard/routes/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astrbot/dashboard/routes/auth.py b/astrbot/dashboard/routes/auth.py index 1d88f6ee4..eac5f65b0 100644 --- a/astrbot/dashboard/routes/auth.py +++ b/astrbot/dashboard/routes/auth.py @@ -82,7 +82,8 @@ class AuthRoute(Route): def generate_jwt(self, username): payload = { "username": username, - "exp": datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(days=7), + "exp": datetime.datetime.now(datetime.timezone.utc) + + datetime.timedelta(days=7), } jwt_token = self.config["dashboard"].get("jwt_secret", None) if not jwt_token: