first-pass of popups for job creation for more than just move files, and fix BUG-112 (after move highlighting is broken)

This commit is contained in:
2023-01-04 12:26:25 +11:00
parent 7e115902fc
commit c3971eb495
7 changed files with 21 additions and 12 deletions

View File

@@ -502,7 +502,7 @@ def search(search_term):
def scannow():
job=NewJob("scannow" )
st.SetMessage("scanning for new files in:&nbsp;<a href=/job/{}>Job #{}</a>&nbsp;(Click the link to follow progress)".format( job.id, job.id) )
return render_template("base.html")
return redirect("/jobs")
################################################################################
# /files/forcescan -> deletes old data in DB, and does a brand new scan
@@ -512,7 +512,7 @@ def scannow():
def forcescan():
job=NewJob("forcescan" )
st.SetMessage("force scan & rebuild data for files in:&nbsp;<a href=/job/{}>Job #{}</a>&nbsp;(Click the link to follow progress)".format( job.id, job.id) )
return render_template("base.html")
return redirect("/jobs")
################################################################################
# /files/scan_sp -> allows us to force a check for new files
@@ -522,7 +522,7 @@ def forcescan():
def scan_sp():
job=NewJob("scan_sp" )
st.SetMessage("scanning for new files in:&nbsp;<a href=/job/{}>Job #{}</a>&nbsp;(Click the link to follow progress)".format( job.id, job.id) )
return render_template("base.html")
return redirect("/jobs")
################################################################################