Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Fixed scraping
Browse files Browse the repository at this point in the history
Source changed column order
  • Loading branch information
foosel committed Oct 27, 2021
1 parent 9c5cd72 commit a3e79b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/coronavirus_hessen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ async def async_get_data():

try:
county = line[0].get_text(" ", strip=True)
cases = parse_num(line[3].get_text(" ", strip=True))
deaths = parse_num(line[4].get_text(" ", strip=True))
incidence = parse_num(line[6].get_text(" ", strip=True), t=float)
incidence = parse_num(line[1].get_text(" ", strip=True), t=float)
cases = parse_num(line[2].get_text(" ", strip=True))
deaths = parse_num(line[3].get_text(" ", strip=True))
except:
_LOGGER.exception("Error processing line {}, skipping".format(line))
continue
Expand Down

0 comments on commit a3e79b5

Please sign in to comment.