mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-14 16:29:12 +00:00
add tests
This commit is contained in:
@@ -190,6 +190,7 @@ class UeFilterSchema(FilterSchema):
|
||||
return Q(semester__in=value)
|
||||
|
||||
def filter_is_open(self, value: bool | None) -> Q: # noqa: FBT001
|
||||
"""Filter by open/closed status."""
|
||||
if value is None:
|
||||
return Q()
|
||||
if not value:
|
||||
|
||||
Reference in New Issue
Block a user