Hadeeratef91 commited on
Commit
34dd22e
ยท
verified ยท
1 Parent(s): 5c4a858

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -70,7 +70,8 @@ elif st.session_state.user_type == "sender":
70
  user_complaints = c.fetchall()
71
  prefix = st.session_state.username[:4].lower()
72
  next_id = len(user_complaints) + 1
73
- complaint_id = f"{prefix}_{next_id:06}"
 
74
 
75
  c.execute("SELECT * FROM complaints WHERE complaint_id=?", (complaint_id,))
76
  if c.fetchone():
@@ -118,6 +119,7 @@ elif st.session_state.user_type == "receiver":
118
  selected_row = options[selected]
119
 
120
  st.write(f"### โœ‰๏ธ ุดูƒูˆู‰: {selected_row[1]}")
 
121
  st.write(f"**ู…ู‚ุฏู… ุงู„ุดูƒูˆู‰:** {selected_row[2]}")
122
  st.write(f"**ุงู„ูˆุตู:** {selected_row[3]}")
123
 
 
70
  user_complaints = c.fetchall()
71
  prefix = st.session_state.username[:4].lower()
72
  next_id = len(user_complaints) + 1
73
+ complaint_id = f"{prefix}_{next_id:07}"
74
+
75
 
76
  c.execute("SELECT * FROM complaints WHERE complaint_id=?", (complaint_id,))
77
  if c.fetchone():
 
119
  selected_row = options[selected]
120
 
121
  st.write(f"### โœ‰๏ธ ุดูƒูˆู‰: {selected_row[1]}")
122
+ st.subheader(f"๐Ÿ“จ ู…ุนุฑู ุงู„ุดูƒูˆู‰: {selected_row[1]}")
123
  st.write(f"**ู…ู‚ุฏู… ุงู„ุดูƒูˆู‰:** {selected_row[2]}")
124
  st.write(f"**ุงู„ูˆุตู:** {selected_row[3]}")
125