Skip to content

Commit 88f007e

Browse files
modified the order from desc to asc and add the min-issue in th test
1 parent 848477c commit 88f007e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

integrations/acquisition/covidcast/test_covidcast_meta_caching.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def test_caching(self):
102102
'mean_value': 1,
103103
'stdev_value': 0,
104104
'max_issue': 20200423,
105+
'min_issue': 20200422,
105106
'min_lag': 0,
106107
'max_lag': 1,
107108
}

src/acquisition/covidcast/database.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def compute_covidcast_meta(self, table_name='covidcast', use_index=True):
300300
`geo_type` ASC
301301
302302
UNION
303+
303304
SELECT
304305
`time_type`,
305306
`geo_type`.
@@ -313,8 +314,8 @@ def compute_covidcast_meta(self, table_name='covidcast', use_index=True):
313314
`time_type`,
314315
`geo_type`
315316
ORDER BY
316-
`time_type` DESC,
317-
`geo_type` DESC
317+
`time_type` ASC,
318+
`geo_type` ASC
318319
'''
319320

320321
meta = []

0 commit comments

Comments
 (0)