Skip to content
Snippets Groups Projects
Commit cbfed2ca authored by Alex Wiens's avatar Alex Wiens
Browse files

Prule.daemon: Fix setting of evaluated column

parent 31d2ea30
No related branches found
No related tags found
No related merge requests found
...@@ -827,8 +827,9 @@ class PruleThread(threading.Thread): ...@@ -827,8 +827,9 @@ class PruleThread(threading.Thread):
# save result to cache db # save result to cache db
if config.config["CACHE_DB"] == True: if config.config["CACHE_DB"] == True:
try: try:
evaluated = "error" in result_json and result_json["error"] == False
with prule.debug.Timing("prulethread.db_insert_result", "PRINT_TIMING" in config.config): with prule.debug.Timing("prulethread.db_insert_result", "PRINT_TIMING" in config.config):
self.db_con.db_insert_result(job.ccjobid, result_json, job_meta, process_time, True) self.db_con.db_insert_result(job.ccjobid, result_json, job_meta, process_time, evaluated)
except Exception as e: except Exception as e:
print(e) print(e)
print("ERROR: db_insert_result failed for job ccid {}".format(job.ccjobid)) print("ERROR: db_insert_result failed for job ccid {}".format(job.ccjobid))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment