Skip to content

Commit 72cafcd

Browse files
authored
Merge pull request #603 from cmu-delphi/sgratzl/remove_workaround
feat: remove missing workaround
2 parents e8d33f6 + 8c61f77 commit 72cafcd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/server/endpoints/covidcast.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
require_all,
3333
require_any,
3434
)
35-
from .._db import sql_table_has_columns
3635
from .._pandas import as_pandas, print_pandas
3736
from .covidcast_utils import compute_trend, compute_trends, compute_correlations, compute_trend_value, CovidcastMetaEntry, AllSignalsMap
3837
from ..utils import shift_time_value, date_to_time_value, time_value_to_iso, time_value_to_date
@@ -136,13 +135,9 @@ def handle():
136135
q = QueryBuilder("covidcast", "t")
137136

138137
fields_string = ["geo_value", "signal"]
139-
fields_int = ["time_value", "direction", "issue", "lag"]
140-
141-
missing_fields = ["missing_value", "missing_stderr", "missing_sample_size"]
142-
if sql_table_has_columns("covidcast", missing_fields):
143-
fields_int.extend(missing_fields)
144-
138+
fields_int = ["time_value", "direction", "issue", "lag", "missing_value", "missing_stderr", "missing_sample_size"]
145139
fields_float = ["value", "stderr", "sample_size"]
140+
146141
if is_compatibility_mode():
147142
q.set_order("signal", "time_value", "geo_value", "issue")
148143
else:

0 commit comments

Comments
 (0)