MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / vault_delete

Function vault_delete

Scripts/Developer Base/Free Internet.py:2007–2016  ·  view source on GitHub ↗
(entry_id: int)

Source from the content-addressed store, hash-verified

2005
2006@app.route("/vault/delete/<int:entry_id>", methods=["POST"])
2007def 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"])
2019def vault_settings():

Callers

nothing calls this directly

Calls 2

require_vaultFunction · 0.70
db_connectFunction · 0.70

Tested by

no test coverage detected