From e57476f7411fcbc8658dd99cd98f224915686d31 Mon Sep 17 00:00:00 2001 From: maruizhi <3088243241@qq.com> Date: Tue, 22 Sep 2026 12:21:39 +0800 Subject: [PATCH] mrz --- PythonProject/api/statistics_api.py | 1 + PythonProject/schema/student_schema.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PythonProject/api/statistics_api.py b/PythonProject/api/statistics_api.py index bb256cc..401efd1 100644 --- a/PythonProject/api/statistics_api.py +++ b/PythonProject/api/statistics_api.py @@ -1,6 +1,7 @@ from fastapi import APIRouter,Depends,Query from dao.statistics_dao import * from schema.statistics_schema import * +from schema.student_schema import * from util.database import get_db StatisticsAPI = APIRouter(tags=['统计分析模块']) diff --git a/PythonProject/schema/student_schema.py b/PythonProject/schema/student_schema.py index 1b510dc..786eba5 100644 --- a/PythonProject/schema/student_schema.py +++ b/PythonProject/schema/student_schema.py @@ -40,7 +40,7 @@ class StudentResponse(BaseModel): progress:int @field_serializer('progress') - def int_to_string(cls,progress:int): + def int_to_string(self,progress:int): d1 ={ 0:'学习中', 1:'求职中',