Spaces:
Running
Running
James McCool
commited on
Commit
·
13ab6ca
1
Parent(s):
3a837cc
Refine totals display in app.py by ensuring consistent rounding for median and ownership values. This update enhances clarity in the lineup summary, improving the overall user experience.
Browse files
app.py
CHANGED
@@ -1030,9 +1030,9 @@ with tab4:
|
|
1030 |
|
1031 |
col1, col2 = st.columns(2)
|
1032 |
with col1:
|
1033 |
-
st.write(f"Rem$/Player: ${((50000 - total_salary) / (10 - len(filled_lineup))
|
1034 |
with col2:
|
1035 |
-
st.write(f"Totals: ${total_salary}, {
|
1036 |
|
1037 |
# Optionally, add a button to clear the lineup
|
1038 |
if st.button("Clear Lineup", key='clear_lineup'):
|
|
|
1030 |
|
1031 |
col1, col2 = st.columns(2)
|
1032 |
with col1:
|
1033 |
+
st.write(f"Rem$/Player: ${round((50000 - total_salary) / (10 - len(filled_lineup)), 0)}")
|
1034 |
with col2:
|
1035 |
+
st.write(f"Totals: ${total_salary}, {round(total_median, 2)}, {round(total_own, 2)}")
|
1036 |
|
1037 |
# Optionally, add a button to clear the lineup
|
1038 |
if st.button("Clear Lineup", key='clear_lineup'):
|