improved DBox images/html, improved look of MoveDBox, started plumbing for pa_job_manager to do actual moves, all the data is there, just havent performed the FS or DB move. cleaned up duplicated DEBUGS that are straight before AddLogForJob... tweaked TODO appropriately

This commit is contained in:
2021-06-14 18:30:52 +10:00
parent dfa52ae1b7
commit b09d19570f
4 changed files with 49 additions and 26 deletions

View File

@@ -361,7 +361,6 @@ def restore_files():
def delete_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( "delete_files", 0, None, jex )
@@ -371,8 +370,12 @@ def delete_files():
@app.route("/move_files", methods=["POST"])
def move_files():
st.SetAlert("warning")
st.SetMessage("Not Yet!")
jex=[]
for el in request.form:
jex.append( JobExtra( name=f"{el}", value=request.form[el] ) )
job=NewJob( "move_files", 0, None, jex )
st.SetAlert("success")
st.SetMessage( f"Created&nbsp;<a href=/job/{job.id}>Job #{job.id}</a>&nbsp;to move selected file(s)")
return render_template("base.html")