Spaces:
Running
Running
adrianpierce
commited on
Commit
•
20e5e7d
1
Parent(s):
cdd120d
Update pages/2_Saved_Recipes.py
Browse files- pages/2_Saved_Recipes.py +2 -1
pages/2_Saved_Recipes.py
CHANGED
@@ -39,9 +39,10 @@ for recipe in recipes_filtered:
|
|
39 |
if st.session_state.admin == True:
|
40 |
st.write('')
|
41 |
st.write(recipe['file'])
|
42 |
-
if st.button("Delete"):
|
43 |
if os.path.exists(f"/data/{recipe['file']}"):
|
44 |
os.remove(f"/data/{recipe['file']}")
|
|
|
45 |
|
46 |
|
47 |
# ignore
|
|
|
39 |
if st.session_state.admin == True:
|
40 |
st.write('')
|
41 |
st.write(recipe['file'])
|
42 |
+
if st.button("Delete", key=recipe['file']):
|
43 |
if os.path.exists(f"/data/{recipe['file']}"):
|
44 |
os.remove(f"/data/{recipe['file']}")
|
45 |
+
st.rerun()
|
46 |
|
47 |
|
48 |
# ignore
|