DrDomedag commited on
Commit
08a27ba
·
1 Parent(s): a0f6dae

Minor UI cleanup.

Browse files
Files changed (2) hide show
  1. pages/dish_planning.py +2 -2
  2. utils/allergy_input.py +4 -10
pages/dish_planning.py CHANGED
@@ -40,7 +40,7 @@ with col1:
40
  else:
41
  st.write(f"{i}")
42
  '''
43
- st.header("Ingredients2")
44
  for i in ingredient_list.keys():
45
  allergic_people_count = 0
46
  for u in user_list.values():
@@ -112,7 +112,7 @@ with col2:
112
  st.write(f"In total, {total_affected_guests} {'is' if total_affected_guests == 1 else 'are'} unable to eat this dish.")
113
  '''
114
 
115
- st.header("Aggregate 2:")
116
  user_pools = defaultdict(lambda: False)
117
 
118
  # Summary of allergies
 
40
  else:
41
  st.write(f"{i}")
42
  '''
43
+ st.header("Ingredients:")
44
  for i in ingredient_list.keys():
45
  allergic_people_count = 0
46
  for u in user_list.values():
 
112
  st.write(f"In total, {total_affected_guests} {'is' if total_affected_guests == 1 else 'are'} unable to eat this dish.")
113
  '''
114
 
115
+ st.header("Aggregate:")
116
  user_pools = defaultdict(lambda: False)
117
 
118
  # Summary of allergies
utils/allergy_input.py CHANGED
@@ -17,12 +17,6 @@ st.markdown(
17
  )
18
 
19
 
20
- st.title("Allergy input")
21
- st.write("Welcome to the allergy input page!")
22
-
23
-
24
-
25
-
26
 
27
  def create_allergy_input(user_id):
28
  import streamlit as st
@@ -54,10 +48,10 @@ def create_allergy_input(user_id):
54
  if st.button("Done"):
55
  st.switch_page(f"pages/user_{user_id}_event_participation.py")
56
 
57
- st.write("Your allergies:")
58
- for i in user_list[user_id].keys():
59
- if user_list[user_id][i][0] > 0:
60
- st.write(f"{i}, allergy degree: {user_list[user_id][i][0]}, can eat if cooked: {user_list[user_id][i][1]}")
61
 
62
  # Text input for the search query
63
  query = st.text_input("Search for an allergy:")
 
17
  )
18
 
19
 
 
 
 
 
 
 
20
 
21
  def create_allergy_input(user_id):
22
  import streamlit as st
 
48
  if st.button("Done"):
49
  st.switch_page(f"pages/user_{user_id}_event_participation.py")
50
 
51
+ #st.write("Your allergies:")
52
+ #for i in user_list[user_id].keys():
53
+ # if user_list[user_id][i][0] > 0:
54
+ # st.write(f"{i}, allergy degree: {user_list[user_id][i][0]}, can eat if cooked: {user_list[user_id][i][1]}")
55
 
56
  # Text input for the search query
57
  query = st.text_input("Search for an allergy:")