Yara Kyrychenko commited on
Commit
1ced9c1
·
1 Parent(s): bce00aa

random pid

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,13 +63,14 @@ if 'inserted' not in st.session_state:
63
  'climate_actions', 'age', 'gender', 'education', 'residence', 'property', 'car',
64
  'politics', 'impact_open', 'ev',
65
  'fossil', 'aerosol', 'diet', 'recycling',
66
- 'user_id'
67
  ]
68
 
69
  for field in st.session_state.fields:
70
  st.session_state[field] = ''
71
 
72
  st.session_state.user_id = str(random.randint(100000, 999999))
 
73
 
74
  st.session_state.recycling = 0
75
 
 
63
  'climate_actions', 'age', 'gender', 'education', 'residence', 'property', 'car',
64
  'politics', 'impact_open', 'ev',
65
  'fossil', 'aerosol', 'diet', 'recycling',
66
+ 'user_id', 'random_pid'
67
  ]
68
 
69
  for field in st.session_state.fields:
70
  st.session_state[field] = ''
71
 
72
  st.session_state.user_id = str(random.randint(100000, 999999))
73
+ st.session_state.random_pid = st.query_params['id']
74
 
75
  st.session_state.recycling = 0
76