Skip to content

Commit 47a8703

Browse files
committed
preemptive addition of other signals into rate-limit exempt list, plus code to also exempt substituted/override signals that was previously missing
1 parent ea84e37 commit 47a8703

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/server/endpoints/covidcast_utils/dashboard_signals.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ def __new__(cls):
3030
with open(module_dir / 'descriptions.raw.txt', 'r') as f:
3131
for desc in yaml.safe_load_all(f):
3232
srcsigs.append( (desc['Id'], desc['Signal']) )
33+
if 'Overrides' in desc:
34+
for sub_geo in desc['Overrides']:
35+
sub_signal = desc['Overrides'][sub_geo]
36+
srcsigs.append( (sub_signal['Id'], sub_signal['Signal']) )
3337

3438
source_id = None
3539
with open(module_dir / 'questions.raw.txt', 'r') as f:

src/server/endpoints/covidcast_utils/descriptions.raw.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ ExtendedColorScale: true
6363
Levels: [nation, state, county]
6464
Overrides:
6565
County:
66-
Id: dsew-cpr
67-
Signal: confirmed_admissions_covid_1d_prop_7dav
66+
Id: hospital-admissions
67+
Signal: smoothed_adj_covid19_from_claims
6868

6969

7070

@@ -96,4 +96,14 @@ Signal: deaths_7dav_incidence_prop
9696
SignalTooltip: Newly reported COVID-19 deaths per 100,000 people, based on data from Johns Hopkins University
9797

9898

99-
Description: This data shows the number of COVID-19 deaths newly reported each day. The signal is based on COVID-19 death counts compiled and made public by [a team at Johns Hopkins University](https://systems.jhu.edu/research/public-health/ncov/).
99+
Description: This data shows the number of COVID-19 deaths newly reported each day. The signal is based on COVID-19 death counts compiled and made public by [a team at Johns Hopkins University](https://systems.jhu.edu/research/public-health/ncov/).
100+
---
101+
Name: COVID Deaths (NCHS)
102+
Id: nchs-mortality
103+
Signal: deaths_covid_incidence_prop
104+
105+
106+
SignalTooltip: Newly reported COVID-19 deaths per 100,000 people, based on NCHS mortality data.
107+
108+
109+
Description: This data shows the number of COVID-19 deaths newly reported each week. The signal is based on COVID-19 death counts compiled and made public by [the National Center for Health Statistics](https://www.cdc.gov/nchs/nvss/vsrr/COVID19/index.htm).

0 commit comments

Comments
 (0)