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

This commit is contained in:
Orangeeee
2026-09-22 22:59:50 +08:00
committed by geyuan
parent 9c9e51d68f
commit c0880f9a44
9 changed files with 30 additions and 26 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