From e8e4f2164319259403da3f3cc51462d8d2e08d3a Mon Sep 17 00:00:00 2001 From: BryantHe Date: Fri, 11 Aug 2023 16:45:23 +0800 Subject: [PATCH] fix: bug --- app/util/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/util/common.py b/app/util/common.py index 7aad113..331e371 100644 --- a/app/util/common.py +++ b/app/util/common.py @@ -5,8 +5,6 @@ from functools import wraps from flask import request, session -from app import rpc - def split_group(dict_list, key): dict_list.sort(key=itemgetter(key)) @@ -24,6 +22,7 @@ def login_required(f): """ 登陆保护,验证用户是否登陆 """ + from app import rpc @wraps(f) def wrapper(*args, **kwargs):