From 4d998a41a1c67bd586f48ccba0d9a658cd2cbcc7 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 25 May 2024 19:57:12 +0000 Subject: [PATCH] Add CfP review filter for hidden-from-schedule --- apps/cfp_review/base.py | 2 +- templates/cfp_review/_proposals_filter_form.html | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/cfp_review/base.py b/apps/cfp_review/base.py index 2e89d97ac..6eae779c7 100644 --- a/apps/cfp_review/base.py +++ b/apps/cfp_review/base.py @@ -106,7 +106,7 @@ def bool_qs(val): def filter_proposal_request() -> tuple[list[Proposal], bool]: - bool_names = ["one_day", "needs_help", "needs_money"] + bool_names = ["one_day", "needs_help", "needs_money", "hide_from_schedule"] bool_vals = [request.args.get(n, type=bool_qs) for n in bool_names] bool_dict = {n: v for n, v in zip(bool_names, bool_vals) if v is not None} diff --git a/templates/cfp_review/_proposals_filter_form.html b/templates/cfp_review/_proposals_filter_form.html index 1f37357c7..1fd2fd344 100644 --- a/templates/cfp_review/_proposals_filter_form.html +++ b/templates/cfp_review/_proposals_filter_form.html @@ -89,6 +89,15 @@ +
+
+ +
+