Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -4810,6 +4810,20 @@ def main():
|
|
| 4810 |
}),
|
| 4811 |
use_container_width=True, hide_index=True
|
| 4812 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4813 |
output_buffer = io.BytesIO()
|
| 4814 |
st.session_state.daily_report_df.to_excel(output_buffer, index=False, engine='openpyxl')
|
| 4815 |
excel_data = output_buffer.getvalue()
|
|
|
|
| 4810 |
}),
|
| 4811 |
use_container_width=True, hide_index=True
|
| 4812 |
)
|
| 4813 |
+
total_attendance = pd.to_numeric(
|
| 4814 |
+
st.session_state.daily_report_df.get('人数合计', 0),
|
| 4815 |
+
errors='coerce'
|
| 4816 |
+
).fillna(0).sum()
|
| 4817 |
+
st.markdown(
|
| 4818 |
+
f"""
|
| 4819 |
+
<div style="margin: 12px 0 18px; padding: 14px 18px; border-left: 6px solid #D83B01; background: #FFF4ED;">
|
| 4820 |
+
<span style="font-size: 18px; font-weight: 700; color: #5C1F00;">已售人次:</span>
|
| 4821 |
+
<span style="font-size: 26px; font-weight: 800; color: #D83B01;">{total_attendance:,.0f}</span>
|
| 4822 |
+
<span style="font-size: 18px; font-weight: 700; color: #5C1F00;"> 人</span>
|
| 4823 |
+
</div>
|
| 4824 |
+
""",
|
| 4825 |
+
unsafe_allow_html=True,
|
| 4826 |
+
)
|
| 4827 |
output_buffer = io.BytesIO()
|
| 4828 |
st.session_state.daily_report_df.to_excel(output_buffer, index=False, engine='openpyxl')
|
| 4829 |
excel_data = output_buffer.getvalue()
|