统计分析模块更新,待测试,优化所有模块main.py文件,修复bug。

This commit is contained in:
Orangeeee
2026-09-22 19:47:02 +08:00
parent 91d86d4ea9
commit d4d1d4fe2d
9 changed files with 37 additions and 31 deletions
+5 -3
View File
@@ -39,9 +39,11 @@ def get_class_count(g , db):
from scores.model.score_model import Score
def get_score_80(db):
q = (db.query(Score)
.filter(Score.score>=80)
.all())
q = ( db.query(Score)
.group_by(Score.score)
.having( min(Score.score) >= 80)
.all()
)
return q