actually create a job for scan now, and let the job manager do the work and send back output via new PA_JobManager_FE_Message table

This commit is contained in:
2021-01-17 10:50:43 +11:00
parent 2a33b6e2f4
commit c5d8811671
5 changed files with 69 additions and 30 deletions

View File

@@ -191,10 +191,8 @@ def files():
@app.route("/files/scannow", methods=["GET"])
def scannow():
job=NewJob("scannow", 1 )
print("beginning of using a job to scan for new files, rather than do it in code here: {}".format(job))
filedata.GenerateFileData()
st.SetAlert("success")
st.SetMessage("Scanned for new files")
st.SetMessage("Created job to scan for new files")
return render_template("base.html", page_title='Forced look for new items', file_data=filedata)
################################################################################