Hadeeratef91 commited on
Commit
990cdeb
·
verified ·
1 Parent(s): e6b1023

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -122,7 +122,6 @@ def sender_page():
122
  conn.commit()
123
  st.session_state.complaint_submitted = True
124
  st.success("✅ تم إرسال الشكوى بنجاح")
125
- st.session_state.complaint_input = ""
126
  st.rerun()
127
  else:
128
  st.session_state.complaint_submitted = True
@@ -248,8 +247,8 @@ def main():
248
  "username": "",
249
  "role": ""
250
  }
251
- st.rerun()
252
-
253
 
254
  if os.path.exists("complaintsBD.db"):
255
  with open("complaintsBD.db", "rb") as db_file:
 
122
  conn.commit()
123
  st.session_state.complaint_submitted = True
124
  st.success("✅ تم إرسال الشكوى بنجاح")
 
125
  st.rerun()
126
  else:
127
  st.session_state.complaint_submitted = True
 
247
  "username": "",
248
  "role": ""
249
  }
250
+ st.session_state.complaint_submitted = False
251
+ st.rerun()
252
 
253
  if os.path.exists("complaintsBD.db"):
254
  with open("complaintsBD.db", "rb") as db_file: