We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bd705b commit 95e2885Copy full SHA for 95e2885
application/blueprints/planning_consideration/views.py
@@ -206,9 +206,14 @@ def considerations():
206
207
stage_param = []
208
if "stage" in request.args:
209
- stage_selections = [
210
- Stage(selection) for selection in request.args.getlist("stage")
211
- ]
+ stage_selections = []
+ for selection in request.args.getlist("stage"):
+ try:
212
+ stage = Stage(selection)
213
+ stage_selections.append(stage)
214
+ except ValueError:
215
+ continue
216
217
stage_param = stage_selections
218
filter_condition = Consideration.stage.in_(stage_selections)
219
query = query.filter(filter_condition)
0 commit comments