Skip to content

Commit

Permalink
feat(nh_p): Fix nh for new year
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Jan 3, 2025
1 parent 49a8f61 commit b3a081c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion juriscraper/opinions/united_states/state/nh_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,14 @@ def set_request_parameters(
:param year: full year integer
"""
year_filter = (
"" if not self.back_scrape_iterable else self.year_to_filter[year]
)
params = {
"iterate_nodes": "true",
# Will raise a KeyError if there is no proper year key, we will
# need to manually correct this next year
"q": self.base_filter.format(self.year_to_filter[year]),
"q": self.base_filter.format(year_filter),
"sort": "field_date_posted|desc|ALLOW_NULLS",
"filter_mode": self.filter_mode,
"type": "document",
Expand Down

0 comments on commit b3a081c

Please sign in to comment.