Maryam Ilka commited on
Commit
d685999
·
verified ·
1 Parent(s): 168346a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -545,6 +545,10 @@ def attention_check1():
545
  )
546
 
547
  if answer: # فقط بررسی می‌کنیم که پاسخی داده شده باشد
 
 
 
 
548
  st.session_state.current_page = "random_likert_questions"
549
  st.rerun()
550
 
@@ -568,6 +572,9 @@ def attention_check2():
568
  )
569
 
570
  if answer: # فقط بررسی می‌کنیم که پاسخی داده شده باشد
 
 
 
571
  st.session_state.current_page = "explanation_questions"
572
  st.rerun()
573
 
@@ -656,6 +663,7 @@ def explanation_questions():
656
  "explanation_received": explanation_received,
657
  "explanation_type": explanation_type if explanation_received == "بله" else "N/A"
658
  }
 
659
 
660
  # جمع‌آوری تمام داده‌ها برای ذخیره‌سازی
661
  end_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
 
545
  )
546
 
547
  if answer: # فقط بررسی می‌کنیم که پاسخی داده شده باشد
548
+
549
+ st.session_state.att1_data = {
550
+ "attention_check1": st.session_state.get("attention_check1", None
551
+ }
552
  st.session_state.current_page = "random_likert_questions"
553
  st.rerun()
554
 
 
572
  )
573
 
574
  if answer: # فقط بررسی می‌کنیم که پاسخی داده شده باشد
575
+ st.session_state.att2_data = {
576
+ "attention_check2": st.session_state.get("attention_check2", None
577
+ }
578
  st.session_state.current_page = "explanation_questions"
579
  st.rerun()
580
 
 
663
  "explanation_received": explanation_received,
664
  "explanation_type": explanation_type if explanation_received == "بله" else "N/A"
665
  }
666
+
667
 
668
  # جمع‌آوری تمام داده‌ها برای ذخیره‌سازی
669
  end_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")