diff options
author | 2024-05-21 19:55:26 +0100 | |
---|---|---|
committer | 2024-05-22 03:05:53 +0100 | |
commit | a21a97126432fce8e3415abd095dd516d2c09429 (patch) | |
tree | 84e788a6a95b3a96950388316d7b30b2e280f786 | |
parent | Merge pull request #3062 from python-discord/dependabot/pip/sentry-sdk-2.2.1 (diff) |
Add new Nomination API filter to filter to active votes
-rw-r--r-- | bot/exts/recruitment/talentpool/_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/recruitment/talentpool/_api.py b/bot/exts/recruitment/talentpool/_api.py index 8cd8eb56a..3c0092617 100644 --- a/bot/exts/recruitment/talentpool/_api.py +++ b/bot/exts/recruitment/talentpool/_api.py @@ -36,6 +36,7 @@ class NominationAPI: self, user_id: int | None = None, active: bool | None = None, + reviewed: bool | None = None, ordering: str = "-inserted_at" ) -> list[Nomination]: """ @@ -46,6 +47,8 @@ class NominationAPI: params = {"ordering": ordering} if active is not None: params["active"] = str(active) + if reviewed is not None: + params["reviewed"] = str(reviewed) if user_id is not None: params["user__id"] = str(user_id) |