Commit f077ecdb authored by Elger Jonker's avatar Elger Jonker

bugfix finished_on field

parent b68648a2
Pipeline #37865572 passed with stages
in 19 minutes and 57 seconds
......@@ -262,14 +262,14 @@ def check_running_scans():
if response['message'] == "OK":
log.debug("Hooray, a scan has finished.")
scan.finished = True
scan.finish_on = datetime.now(pytz.utc)
scan.finished_on = datetime.now(pytz.utc)
scan.success = True
store(response)
if response['message'] in ["Error while registering the domains" or "Problem parsing domains"]:
log.debug("Scan encountered an error.")
scan.finished = True
scan.finish_on = datetime.now(pytz.utc)
scan.finished_on = datetime.now(pytz.utc)
scan.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment