From 197287ee3e9b963159092d4a7c4bbad351326602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80=C3=AE=C3=97=C3=9A=C3=95=C3=B1?= Date: Fri, 26 Aug 2022 17:19:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crud/crud_interview_tables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crud/crud_interview_tables.py b/crud/crud_interview_tables.py index 0b8d0b2..d70b2ba 100644 --- a/crud/crud_interview_tables.py +++ b/crud/crud_interview_tables.py @@ -5,10 +5,10 @@ from crud.base import CRUDBase __all__ = 'api_interview_tables', -class ApiInterviewModes(CRUDBase): +class ApiInterviewTables(CRUDBase): # 获取分组所有报表 - async def get_interview_modes(self, db: AsyncIOMotorDatabase, data_in: schemas.FindTables): + async def get_mode_tables(self, db: AsyncIOMotorDatabase, data_in: schemas.FindTables): where = data_in.where where.update({'mode_id': data_in.mode_id}) return await self.find_many(db, where, {'_id': 0}) @@ -25,4 +25,4 @@ class ApiInterviewModes(CRUDBase): return await self.update_one(db, {'table_id': data_in.table_id}, {'$set': data_in.update_data}) -api_interview_modes = ApiInterviewModes('interview_tables') +api_interview_tables = ApiInterviewTables('interview_tables')