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:
4
files.py
4
files.py
@@ -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)
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user