Spaces:
Configuration error
Configuration error
Minor UI cleanup.
Browse files- utils/allergy_input.py +7 -7
utils/allergy_input.py
CHANGED
|
@@ -37,13 +37,13 @@ def create_allergy_input(user_id):
|
|
| 37 |
#st.write(f"Sensitivity Level: {selected_sensitivity}")
|
| 38 |
#st.write(f"Can Eat If Cooked: {'Yes' if can_eat_if_cooked else 'No'}")
|
| 39 |
with st.expander("Show Selections"):
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
if st.button("Done"):
|
| 49 |
st.switch_page(f"pages/user_{user_id}_event_participation.py")
|
|
|
|
| 37 |
#st.write(f"Sensitivity Level: {selected_sensitivity}")
|
| 38 |
#st.write(f"Can Eat If Cooked: {'Yes' if can_eat_if_cooked else 'No'}")
|
| 39 |
with st.expander("Show Selections"):
|
| 40 |
+
for i in user_list[user_id].keys():
|
| 41 |
+
if user_list[user_id][i][0] > 0:
|
| 42 |
+
st.write(f"**{i}**")
|
| 43 |
+
st.write(f"Sensitivity Level: {sensitivities[user_list[user_id][i][0]]}")
|
| 44 |
+
st.write(f"Can Eat If Cooked: {'Yes' if user_list[user_id][i][1] else 'No'}")
|
| 45 |
+
#st.write(f"Can Eat Traces: {'Yes' if user_list[user_id][i][2] else 'No'}")
|
| 46 |
+
|
| 47 |
|
| 48 |
if st.button("Done"):
|
| 49 |
st.switch_page(f"pages/user_{user_id}_event_participation.py")
|