From 853ddebafa51d503299c8ca50b6b1375be9cbf31 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 20 Nov 2020 17:22:16 -0500 Subject: They added a comma that broke my int conversions --- poller/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "" -- cgit v1.2.3