Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Nov 7, 2024
1 parent 6674e7c commit 21f9442
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions OpenOversight/app/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ def browse():
def get_officer():
form = FindOfficerForm()

departments_dict = [dept_choice.to_custom_dict() for dept_choice in dept_choices()]

if getattr(current_user, "dept_pref_rel", None):
set_dynamic_default(form.dept, current_user.dept_pref_rel)

Expand Down Expand Up @@ -213,7 +211,7 @@ def get_officer():
return render_template(
"input_find_officer.html",
form=form,
depts_dict=departments_dict,
depts_dict=[dept_choice.to_custom_dict() for dept_choice in dept_choices()],
jsloads=["js/find_officer.js"],
)

Expand Down

0 comments on commit 21f9442

Please sign in to comment.