remove white space on status message

This commit is contained in:
2023-01-10 17:47:33 +11:00
parent 0784861331
commit dc96dce02d

2
job.py
View File

@@ -314,7 +314,7 @@ def CheckForJobs():
print( f"called: /checkforjobs -- num={num}" )
sts=[]
for msg in PA_JobManager_Message.query.all():
u='<a class="link-light" href="' + url_for('joblog', id=msg.job_id) + '">Job # ' + str(msg.job_id) + '</a>: '
u='<a class="link-light" href="' + url_for('joblog', id=msg.job_id) + '">Job #' + str(msg.job_id) + '</a>: '
sts.append( { 'message': u+msg.message, 'alert': msg.alert, 'job_id': msg.job_id, 'persistent': msg.persistent, 'cant_close': msg.cant_close } )
return make_response( jsonify( num_active_jobs=num, sts=sts ) )