emvecchi commited on
Commit
a885e86
1 Parent(s): 302cefa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,7 +176,7 @@ def navigate(index_change):
176
  st.rerun()
177
 
178
 
179
- def show_field(f: Field, index: int):
180
  if f.type not in INPUT_FIELD_DEFAULT_VALUES.keys():
181
  match f.type:
182
  case 'input_col':
@@ -196,7 +196,7 @@ def show_field(f: Field, index: int):
196
  if f.type == 'container':
197
  st.markdown(f.title)
198
  for child in f.children:
199
- show_field(child, index)
200
  else:
201
  key = f.name + str(index)
202
  value = st.session_state.default_values[f.name] = data_collected[f.name] if data_collected else \
 
176
  st.rerun()
177
 
178
 
179
+ def show_field(f: Field, index: int, data_collected):
180
  if f.type not in INPUT_FIELD_DEFAULT_VALUES.keys():
181
  match f.type:
182
  case 'input_col':
 
196
  if f.type == 'container':
197
  st.markdown(f.title)
198
  for child in f.children:
199
+ show_field(child, index, data_collected)
200
  else:
201
  key = f.name + str(index)
202
  value = st.session_state.default_values[f.name] = data_collected[f.name] if data_collected else \