Skip to content

Commit

Permalink
Remove int path convert for all urls, statewide agency id is a negati…
Browse files Browse the repository at this point in the history
…ve id and would be redirected, crashing the contraband page (#265)
  • Loading branch information
Afani97 authored Feb 8, 2024
1 parent 15363eb commit cc76e97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nc/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,27 @@
name="search-rate",
),
path(
"api/agency/<int:agency_id>/contraband/",
"api/agency/<agency_id>/contraband/",
views.AgencyContrabandView.as_view(),
name="contraband-percentages",
),
path(
"api/agency/<int:agency_id>/contraband-types/",
"api/agency/<agency_id>/contraband-types/",
views.AgencyContrabandTypesView.as_view(),
name="contraband-type-percentages",
),
path(
"api/agency/<int:agency_id>/contraband-stop-purpose/",
"api/agency/<agency_id>/contraband-stop-purpose/",
views.AgencyContrabandStopPurposeView.as_view(),
name="contraband-percentages-stop-purpose-groups",
),
path(
"api/agency/<int:agency_id>/contraband-grouped-stop-purpose/",
"api/agency/<agency_id>/contraband-grouped-stop-purpose/",
views.AgencyContrabandGroupedStopPurposeView.as_view(),
name="contraband-percentages-grouped-stop-purpose",
),
path(
"api/agency/<int:agency_id>/contraband-grouped-stop-purpose/modal/",
"api/agency/<agency_id>/contraband-grouped-stop-purpose/modal/",
views.AgencyContrabandStopGroupByPurposeModalView.as_view(),
name="contraband-percentages-grouped-stop-purpose-modal",
),
Expand Down

0 comments on commit cc76e97

Please sign in to comment.