Spaces:
Runtime error
Runtime error
tarfandoon
commited on
Commit
•
452c276
1
Parent(s):
68a7fbf
Update pages/16_Pricerunner.py
Browse files- pages/16_Pricerunner.py +5 -5
pages/16_Pricerunner.py
CHANGED
@@ -52,12 +52,12 @@ if 'Find price' in ch:
|
|
52 |
|
53 |
df = pd.read_sql('SELECT * FROM proucts ', con)
|
54 |
h = df.to_csv(sep=',')
|
55 |
-
c = st.download_button("Download csv file",h,'price.csv','text/csv',)
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
|
62 |
|
63 |
con.close()
|
|
|
52 |
|
53 |
df = pd.read_sql('SELECT * FROM proucts ', con)
|
54 |
h = df.to_csv(sep=',')
|
55 |
+
c = st.download_button("Download csv file",h,'price.csv','text/csv', key='Download_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')
|
61 |
|
62 |
|
63 |
con.close()
|