Skip to content

Commit 9223eab

Browse files
committed
add and configure daily count checkbox
1 parent 8493d33 commit 9223eab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
st.markdown(chart_descriptions(new_admit_chart))
5353

5454
if st.checkbox("Show Projected Admissions in tabular form"):
55-
draw_projected_admissions_table(st, admissions_df, as_date=p.as_date)
55+
if st.checkbox("Show Daily Counts"):
56+
draw_projected_admissions_table(st, admissions_df, as_date=p.as_date, daily_count=True)
57+
else:
58+
draw_projected_admissions_table(st, admissions_df, as_date=p.as_date, daily_count=False)
5659
st.subheader("Admitted Patients (Census)")
5760
st.markdown(
5861
"Projected **census** of COVID-19 patients, accounting for arrivals and discharges at Penn hospitals"

0 commit comments

Comments
 (0)