Commit 2d7fb8b6 authored by Elger Jonker's avatar Elger Jonker

bugfix finished_on field


Former-commit-id: f077ecdb
parent 489de2f2
......@@ -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