Skip to content

Commit

Permalink
fix: limit results to the current location set (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
dodumosu authored Dec 6, 2024
1 parent ecfa78f commit 707b5d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apollo/process_analysis/views_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def _process_analysis(event, form_id, location_id=None, tag=None):
if form.form_type == "INCIDENT":
if display_tag:
context["form_field"] = form.get_field_by_tag(display_tag)
context["location_types"] = location_types.find(is_political=True)
context["location_types"] = location_types.find(
is_political=True, location_set_id=event.location_set_id
)
context["incidents"] = filter_set.qs
else:
incidents_summary = generate_incidents_data(submission_dataframe, form, location, grouped, tags)
Expand Down

0 comments on commit 707b5d3

Please sign in to comment.