now have a NewJob used in pa_job_mgr and it does not set start_time until it starts, caters for BUG-97 (restarting jobs resetting start times)

This commit is contained in:
2022-07-23 00:33:04 +10:00
parent 750b903a9d
commit 24bcfa0aab
4 changed files with 55 additions and 59 deletions

5
job.py
View File

@@ -272,4 +272,7 @@ def joblog_search():
################################################################################
@app.template_filter('vicdate')
def _jinja2_filter_datetime(date, fmt=None):
return date.strftime("%d/%m/%Y %I:%M:%S %p")
if date:
return date.strftime("%d/%m/%Y %I:%M:%S %p")
else:
return "N/A"