added undelete route/function
This commit is contained in:
12
files.py
12
files.py
@@ -345,6 +345,18 @@ def rm_dups():
|
||||
|
||||
return render_template("base.html")
|
||||
|
||||
@app.route("/undelete_files", methods=["POST"])
|
||||
def undelete_files():
|
||||
jex=[]
|
||||
for el in request.form:
|
||||
print( f"{el}={request.form[el]}" )
|
||||
jex.append( JobExtra( name=f"{el}", value=request.form[el] ) )
|
||||
|
||||
job=NewJob( "undelete_files", 0, None, jex )
|
||||
st.SetAlert("success")
|
||||
st.SetMessage( f"Created <a href=/job/{job.id}>Job #{job.id}</a> to undelete selected file(s)")
|
||||
return render_template("base.html")
|
||||
|
||||
@app.route("/delete_files", methods=["POST"])
|
||||
def delete_files():
|
||||
jex=[]
|
||||
|
||||
Reference in New Issue
Block a user