Skip to content

Commit

Permalink
fixed url pattern for search rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
derekeder committed Jan 12, 2024
1 parent 80b6fff commit dc201ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions chicago/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ def title(self, obj):
return title

def link(self, obj):
# return the main non-RSS search URL somehow
# XXX maybe "quargs" - evz
# return reverse('councilmatic_search', args=(searchqueryset=self.sqs,))
url = self.url_with_querystring(
reverse("{}:councilmatic_search_feed".format(settings.APP_NAME)),
reverse("search"),
q=self.query,
)
return url
Expand Down
4 changes: 2 additions & 2 deletions chicago/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

patterns = [
url(r"^search/", views.FacetedSearchView.as_view(), name="search"),
url(r"^search/$", views.FacetedSearchView.as_view(), name="search"),
url(r"^$", views.IndexView.as_view(), name="index"),
url(r"^about/$", views.AboutView.as_view(), name="about"),
url(
Expand Down Expand Up @@ -92,7 +92,7 @@

feed_patterns = [
url(
r"^search/rss/",
r"^search/rss/$",
feeds.FacetedSearchFeed(),
name="councilmatic_search_feed",
),
Expand Down
2 changes: 0 additions & 2 deletions chicago/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ def _get_selected_facets(self):
except KeyError:
selected_facets[k] = [v]

print(selected_facets)

return selected_facets

def _get_query_parameters(self):
Expand Down

0 comments on commit dc201ba

Please sign in to comment.