Skip to content

Commit 3734972

Browse files
committed
not select star
1 parent 3849eb4 commit 3734972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/endpoints/covid_hosp_state_timeseries.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ def handle():
178178
q.params["as_of"] = as_of
179179
union_subquery = f'''
180180
(
181-
SELECT *, 'D' as record_type FROM `covid_hosp_state_daily` c
181+
SELECT {q.fields_clause}, 'D' as record_type FROM `covid_hosp_state_daily` c
182182
LEFT JOIN `covid_hosp_state_daily` c2 ON c.date = c2.date AND c.state = c2.state AND c.issue < c2.issue
183183
WHERE c2.issue IS NULL AND {cond_clause}
184184
UNION ALL
185-
SELECT *, 'T' as record_type FROM `covid_hosp_state_timeseries` c
185+
SELECT {q.fields_clause}, 'T' as record_type FROM `covid_hosp_state_timeseries` c
186186
LEFT JOIN `covid_hosp_state_timeseries` c2 ON c.date = c2.date AND c.state = c2.state AND c.issue < c2.issue
187187
WHERE c2.issue IS NULL AND {cond_clause}
188188
) c'''

0 commit comments

Comments
 (0)