Spaces:
Sleeping
Sleeping
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -547,7 +547,7 @@ def attention_check1():
|
|
| 547 |
if answer: # فقط بررسی میکنیم که پاسخی داده شده باشد
|
| 548 |
|
| 549 |
st.session_state.att1_data = {
|
| 550 |
-
"attention_check1":
|
| 551 |
}
|
| 552 |
st.session_state.current_page = "random_likert_questions"
|
| 553 |
st.rerun()
|
|
@@ -573,7 +573,7 @@ def attention_check2():
|
|
| 573 |
|
| 574 |
if answer: # فقط بررسی میکنیم که پاسخی داده شده باشد
|
| 575 |
st.session_state.att2_data = {
|
| 576 |
-
"attention_check2":
|
| 577 |
}
|
| 578 |
st.session_state.current_page = "explanation_questions"
|
| 579 |
st.rerun()
|
|
@@ -678,8 +678,8 @@ def explanation_questions():
|
|
| 678 |
"price": st.session_state.price,
|
| 679 |
"user_contact": st.session_state.get("user_contact", ""),
|
| 680 |
"price_accepted": st.session_state.get("price_accepted", 0),
|
| 681 |
-
"attention_check1":
|
| 682 |
-
"attention_check2":
|
| 683 |
"explanation_received": explanation_received,
|
| 684 |
"explanation_type": explanation_type if explanation_received == "بله" else "N/A",
|
| 685 |
**st.session_state.demographic_data
|
|
|
|
| 547 |
if answer: # فقط بررسی میکنیم که پاسخی داده شده باشد
|
| 548 |
|
| 549 |
st.session_state.att1_data = {
|
| 550 |
+
"attention_check1": attention_check1_ans
|
| 551 |
}
|
| 552 |
st.session_state.current_page = "random_likert_questions"
|
| 553 |
st.rerun()
|
|
|
|
| 573 |
|
| 574 |
if answer: # فقط بررسی میکنیم که پاسخی داده شده باشد
|
| 575 |
st.session_state.att2_data = {
|
| 576 |
+
"attention_check2": attention_check2_ans
|
| 577 |
}
|
| 578 |
st.session_state.current_page = "explanation_questions"
|
| 579 |
st.rerun()
|
|
|
|
| 678 |
"price": st.session_state.price,
|
| 679 |
"user_contact": st.session_state.get("user_contact", ""),
|
| 680 |
"price_accepted": st.session_state.get("price_accepted", 0),
|
| 681 |
+
"attention_check1": attention_check1_ans,
|
| 682 |
+
"attention_check2": attention_check2_ans,
|
| 683 |
"explanation_received": explanation_received,
|
| 684 |
"explanation_type": explanation_type if explanation_received == "بله" else "N/A",
|
| 685 |
**st.session_state.demographic_data
|