Skip to content

Commit

Permalink
aaaaaand another linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zstumgoren committed Apr 10, 2024
1 parent 9121bf1 commit 24d474c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clean/ca/san_diego_pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def download_index_pages(
html = cache.read(base_file)
soup = BeautifulSoup(html, "html.parser")
page_count = int(
soup.find_all("li", class_="pager__item")[-1] # last <li> in the pager
.a.attrs["href"] # the <a> tag inside the <li> # will be ?page=X
.split("=")[-1] # get the X
soup.find_all("li", class_="pager__item")[-1] # last <li> in the pager
.a.attrs["href"] # the <a> tag inside the <li> # will be ?page=X
.split("=")[-1] # get the X
)
if current_page != page_count:
# Recursively call this function to get the next page
Expand Down

0 comments on commit 24d474c

Please sign in to comment.