Return all students if mode is null
This commit is contained in:
parent
468951d9bb
commit
96151d0598
@ -31,8 +31,7 @@ class Student(Person):
|
||||
order_by_last_name: str = None) -> BaseQuery:
|
||||
student_query = cls.query
|
||||
|
||||
if mode is None:
|
||||
mode = True
|
||||
if mode is not None:
|
||||
student_query = student_query.filter_by(mode=mode)
|
||||
|
||||
if fullname is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user