Skip to content

Commit

Permalink
Black reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
SimmonsRitchie committed Dec 20, 2023
1 parent 983439e commit a172e04
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion city_scrapers/spiders/summ_county_council.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def parse(self, response):
if url_idx == len(self.doc_urls) - 1:
yield from self._get_calendar_pages()
else:

yield scrapy.Request(self.doc_urls[url_idx + 1], dont_filter=True)

def _get_calendar_pages(self):
Expand Down
5 changes: 4 additions & 1 deletion city_scrapers/spiders/summ_developmental_disabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def _parse_detail(self, response):
yield response.follow(
(
"/about/summit-dd-board/board-meetings/{}-meeting-documents/{}-board-meeting-documents/" # noqa
).format(start.year, start.strftime("%B").lower(),),
).format(
start.year,
start.strftime("%B").lower(),
),
callback=self._parse_links,
dont_filter=True,
)
Expand Down
3 changes: 2 additions & 1 deletion city_scrapers/spiders/summ_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def _parse_links_page(self, section, response):
if date_match:
link_title = "Meeting Packet"
start_date = datetime.strptime(
date_match.group().replace(",", ""), "%B %d %Y",
date_match.group().replace(",", ""),
"%B %d %Y",
).date()
if len(item.css("a")) == 0:
continue
Expand Down
3 changes: 2 additions & 1 deletion city_scrapers/spiders/summ_soil_water_conservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def start_urls(self):
"sanitizeHtml=true&timeMin={}T00:00:00-04:00&timeMax={}T00:00:00-04:00&"
"key=AIzaSyBNlYH01_9Hc5S1J9vuFmu2nUqBZJNAXxs"
).format(
last_week.strftime("%Y-%m-%d"), in_two_months.strftime("%Y-%m-%d"),
last_week.strftime("%Y-%m-%d"),
in_two_months.strftime("%Y-%m-%d"),
)
]

Expand Down
3 changes: 2 additions & 1 deletion city_scrapers/spiders/summ_veterans.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def start_urls(self):
"sanitizeHtml=true&timeMin={}T00:00:00-04:00&timeMax={}T00:00:00-04:00&"
"key=AIzaSyBNlYH01_9Hc5S1J9vuFmu2nUqBZJNAXxs"
).format(
last_week.strftime("%Y-%m-%d"), in_two_months.strftime("%Y-%m-%d"),
last_week.strftime("%Y-%m-%d"),
in_two_months.strftime("%Y-%m-%d"),
)
]

Expand Down

0 comments on commit a172e04

Please sign in to comment.