IsaacKerson commited on
Commit
0492f04
1 Parent(s): 111174f

correct index error

Browse files
Files changed (1) hide show
  1. pages/view.py +2 -2
pages/view.py CHANGED
@@ -15,10 +15,10 @@ def app():
15
 
16
  query = st.text_input("Query", placeholder="Type query here")
17
 
18
- if len(query) > 0:
19
  try:
20
  for idx, item in enumerate(c.execute(query)):
21
- st.write(f'{inx}: {item}')
22
  except Exception as error:
23
  st.write(error)
24
 
 
15
 
16
  query = st.text_input("Query", placeholder="Type query here")
17
 
18
+ if len(query) > 1:
19
  try:
20
  for idx, item in enumerate(c.execute(query)):
21
+ st.write(f'{idx}: {item}')
22
  except Exception as error:
23
  st.write(error)
24