aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-08-18 15:32:34 -0400
committerGalen Guyer <galen@galenguyer.com>2021-08-18 15:32:34 -0400
commit1ac72b44618eb17e85988f109bc2681c32203143 (patch)
tree9ebfefffd4f837cedb49ad1cebc439307bc7a245
parent9aa1e66275f967461e77e5d6d605b1773b307bc1 (diff)
fix lack of color in dashboard
-rw-r--r--poller/__init__.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/poller/__init__.py b/poller/__init__.py
index a1e64bd..ca60918 100644
--- a/poller/__init__.py
+++ b/poller/__init__.py
@@ -77,17 +77,17 @@ def get_data():
#isolation_off_campus = int(soup.find('div', attrs={'class': 'statistic-13908'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip())
#beds_available = int(soup.find('div', attrs={'class': 'statistic-13935'}).find_all("p", attrs={'class': 'card-header'})[0].text.strip().strip('%'))
#tests_administered = int(soup.find('div', attrs={'class': 'statistic-13923'}).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
+ #container = soup.find('div', attrs={'id': 'pandemic-message-container'})
+ #alert_level = container.find('a').text
color = ""
- if "Green" in alert_level:
- color = 'green'
- elif "Yellow" in alert_level:
- color = 'yellow'
- elif "Orange" in alert_level:
- color = 'orange'
- elif "Red" in alert_level:
- color = 'red'
+ #if "Green" in alert_level:
+ # color = 'green'
+ #elif "Yellow" in alert_level:
+ # color = 'yellow'
+ #elif "Orange" in alert_level:
+ # color = 'orange'
+ #elif "Red" in alert_level:
+ # color = 'red'
#fall_data = None
#with open('history/fall-2020.json', 'r') as fd:
@@ -123,4 +123,4 @@ def dedup():
print('dropped ' + data[i].serialize()['last_updated'])
db.session.commit()
-get_data() \ No newline at end of file
+get_data()