(entry_id: int)
| 2005 | |
| 2006 | @app.route("/vault/delete/<int:entry_id>", methods=["POST"]) |
| 2007 | def vault_delete(entry_id: int): |
| 2008 | gate = require_vault() |
| 2009 | if gate: |
| 2010 | return gate |
| 2011 | con = db_connect() |
| 2012 | con.execute("DELETE FROM entries WHERE id=?", (entry_id,)) |
| 2013 | con.commit() |
| 2014 | con.close() |
| 2015 | flash("Entry deleted.") |
| 2016 | return redirect(url_for("vault_home")) |
| 2017 | |
| 2018 | @app.route("/vault/settings", methods=["GET", "POST"]) |
| 2019 | def vault_settings(): |
nothing calls this directly
no test coverage detected