faizhalas commited on
Commit
39b17b4
·
verified ·
1 Parent(s): 00fb7ba

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +5 -4
Home.py CHANGED
@@ -79,10 +79,11 @@ try:
79
 
80
  #red = u1.checkbox("Show red items.", True)
81
  #blue = u2.checkbox("Show blue items.", True)
82
-
 
83
  cols = st.columns(3) # split into 3 columns
84
  selected = []
85
- for i, opt in enumerate(part_opt):
86
  if cols[i % 3].checkbox(opt):
87
  selected.append(opt)
88
 
@@ -138,5 +139,5 @@ try:
138
  else:
139
  st.write("Dalam pembangunan")
140
 
141
- except Exception:
142
- st.error("Masukan kata pencarian")
 
79
 
80
  #red = u1.checkbox("Show red items.", True)
81
  #blue = u2.checkbox("Show blue items.", True)
82
+
83
+ options = part_opt[:-1]
84
  cols = st.columns(3) # split into 3 columns
85
  selected = []
86
+ for i, opt in enumerate(options):
87
  if cols[i % 3].checkbox(opt):
88
  selected.append(opt)
89
 
 
139
  else:
140
  st.write("Dalam pembangunan")
141
 
142
+ except Exception as e:
143
+ st.error(f"Query error: {e}")