diff options
author | Galen Guyer <galen@galenguyer.com> | 2020-11-20 17:22:16 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2020-11-20 17:22:44 -0500 |
commit | 853ddebafa51d503299c8ca50b6b1375be9cbf31 (patch) | |
tree | 17faa7abfd88a1671631dea19eb02433d4a7d0c6 | |
parent | f00b200dcbcea9eeb4cc5d091bf3eff87a7ddb78 (diff) |
They added a comma that broke my int conversions
-rw-r--r-- | poller/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poller/__init__.py b/poller/__init__.py index daa4fa8..2aaa937 100644 --- a/poller/__init__.py +++ b/poller/__init__.py @@ -179,7 +179,7 @@ def get_data(): isolation_on_campus = int(soup.find('div', attrs={'class': 'statistic-12226'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip()) isolation_off_campus = int(soup.find('div', attrs={'class': 'statistic-12229'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip()) beds_available = int(soup.find('div', attrs={'class': 'statistic-12214'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip().strip('%')) - tests_administered = int(soup.find('div', attrs={'class': 'statistic-12829'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip().replace("*", " ")) + tests_administered = int(soup.find('div', attrs={'class': 'statistic-12829'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip().replace("*", " ").replace(",", "")) container = soup.find('div', attrs={'id': 'pandemic-message-container'}) alert_level = container.find("a").text color = "" |