first test

This commit is contained in:
jianqi
2026-09-21 20:27:33 +08:00
parent e8be87eca0
commit 2b9fb53b8d
4 changed files with 99 additions and 3 deletions
+3 -1
View File
@@ -195,6 +195,8 @@ class StatisticsDao:
.limit(top_n)
)
ans = [
TopSalaryStudentItem(
stu_name=row.name,
@@ -290,7 +292,7 @@ class StatisticsDao:
filter_query = base_query.filter(StuInfo.age > age)
elif operator == "lt" or operator == "<":
filter_query = base_query.filter(StuInfo.age < age)
elif operator == "eq" or operator == "=":
elif operator == "eq" or operator == "==":
filter_query = base_query.filter(StuInfo.age == age)
finally_data = filter_query.all()