Commit 6b43fcec authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Add tool name in analytics

parent 75659545
......@@ -136,6 +136,7 @@ if MODE == "webserver":
batch_type = CharField(max_length=20)
job_type = CharField(max_length=5, default="unk")
status = CharField(max_length=20, default="unknown")
tool = CharField(default="undefined", max_length=50, null=True)
if not Analytics.table_exists():
......@@ -78,6 +78,7 @@ class JobManager:
self.config = AppConfigReader() = Tools().tools
self.tool =[tool] if tool is not None else None
self.tool_name = tool
# Outputs:
self.output_dir = os.path.join(self.config.app_data, id_job)
self.preptime_file = os.path.join(self.output_dir, "prep_times")
......@@ -1436,7 +1437,8 @@ class JobManager:
job_type="new" if (self.align is None and self.backup is None) else "plot")
job_type="new" if (self.align is None and self.backup is None) else "plot",
tool=self.tool_name if self.tool_name is not None else "unset")
def _set_analytics_job_status(self, status):
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