Skip to content

Commit 040e88f

Browse files
delete the min_issue part
1 parent fdba55b commit 040e88f

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

integrations/acquisition/covidcast/test_covidcast_meta_caching.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,14 @@ def test_caching(self):
109109
'max_time': 20200422,
110110
'num_locations': 2,
111111
'last_update': 789,
112-
'min_value': 1.0,
113-
'max_value': 1.0,
114-
'mean_value': 1.0,
115-
'stdev_value': 0.0,
112+
'min_value': 1,
113+
'max_value': 1,
114+
'mean_value': 1,
115+
'stdev_value': 0,
116116
'max_issue': 20200423,
117117
'min_lag': 0,
118118
'max_lag': 1,
119+
119120
}
120121
])
121122
epidata1={'result':1, 'message':'success', 'epidata':epidata1}

src/acquisition/covidcast/database.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -299,17 +299,7 @@ def compute_covidcast_meta(self, table_name='covidcast', use_index=True):
299299
`time_type` ASC,
300300
`geo_type` ASC
301301
'''
302-
min_sql = f'''
303-
SELECT
304-
`time_type`,
305-
MIN(`issue`) as `min_issue`
306-
FROM
307-
`{table_name}`
308-
ORDER BY
309-
`time_type` ASC
310-
'''
311-
312-
302+
313303
meta = []
314304
meta_lock = threading.Lock()
315305

0 commit comments

Comments
 (0)