first test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user