更新v1.4版本,修复了一些已知问题
This commit is contained in:
@@ -135,9 +135,8 @@ class ParentService:
|
||||
offset=offset
|
||||
)
|
||||
|
||||
# 获取总数
|
||||
all_records = await ConductModel.get_student_records(user["student_id"], limit=10000)
|
||||
total = len(all_records)
|
||||
# 使用 COUNT 查询获取总数(避免获取全部记录)
|
||||
total = await ConductModel.count_student_records(user["student_id"])
|
||||
|
||||
return {
|
||||
"student_id": student["student_id"],
|
||||
|
||||
Reference in New Issue
Block a user