From b8e99f39803fa6cc40483d205bec3a4ff70e4fef Mon Sep 17 00:00:00 2001 From: wuaho Date: Wed, 25 Aug 2021 20:01:44 +0800 Subject: [PATCH] 1 --- api/api_v1/endpoints/data_auth.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/api_v1/endpoints/data_auth.py b/api/api_v1/endpoints/data_auth.py index 03ab67f..149581d 100644 --- a/api/api_v1/endpoints/data_auth.py +++ b/api/api_v1/endpoints/data_auth.py @@ -106,9 +106,7 @@ async def my_event(request: Request, ) -> schemas.Msg: """获取自己的事件权限""" event_list = [] - event_columns = await ck.distinct(game, 'event', '#event_name') - - my_data_auth = [item['name'] for item in event_columns] + my_data_auth = await ck.distinct(game, 'event', '#event_name') # # else: