Maryam Ilka commited on
Commit
798da71
·
verified ·
1 Parent(s): 2bcc62f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -544,10 +544,8 @@ def attention_check1():
544
  key="attention_check1"
545
  )
546
 
547
- if attention_check1: # فقط بررسی می‌کنیم که پاسخی داده شده باشد
548
- st.session_state.att1_data = {
549
- "attention_check1": attention_check1
550
- }
551
  st.session_state.current_page = "random_likert_questions"
552
  st.rerun()
553
 
@@ -570,10 +568,8 @@ def attention_check2():
570
  key="attention_check2"
571
  )
572
 
573
- if attention_check2: # فقط بررسی می‌کنیم که پاسخی داده شده باشد
574
- st.session_state.att2_data = {
575
- "attention_check2": attention_check2
576
- }
577
  st.session_state.current_page = "explanation_questions"
578
  st.rerun()
579
 
 
544
  key="attention_check1"
545
  )
546
 
547
+ if attention_check1:
548
+ st.session_state.attention_check1 = attention_check1 # ذخیره در session_state
 
 
549
  st.session_state.current_page = "random_likert_questions"
550
  st.rerun()
551
 
 
568
  key="attention_check2"
569
  )
570
 
571
+ if attention_check2:
572
+ st.session_state.attention_check2 = attention_check2 # ذخیره در session_state
 
 
573
  st.session_state.current_page = "explanation_questions"
574
  st.rerun()
575