Update pages/16_Pricerunner.py

#4
by tarfandoon - opened
Files changed (1) hide show
  1. pages/16_Pricerunner.py +1 -1
pages/16_Pricerunner.py CHANGED
@@ -54,7 +54,7 @@ if 'Find price' in ch:
54
  h = df.to_csv(sep=',')
55
  c = st.download_button("Download csv file",h,'price.csv','text/csv',)
56
 
57
- if c :
58
  cur.execute("DELETE from proucts ")
59
  con.commit()
60
  st.warning('Database is empty now again,try with new search again')
 
54
  h = df.to_csv(sep=',')
55
  c = st.download_button("Download csv file",h,'price.csv','text/csv',)
56
 
57
+ with c :
58
  cur.execute("DELETE from proucts ")
59
  con.commit()
60
  st.warning('Database is empty now again,try with new search again')