Commit 15b22837 authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

included recommendations to the output

parent 56cde4e6
......@@ -5,13 +5,7 @@ import argparse
import db.aggregator as aggregator
import conf.config as conf
from format import format
def print_job_info(job_id, type):
aggr = aggregator.get_aggregator(job_id, type)
formatted = format.format(aggr, type)
from rcm import rcm
def main():
parser = argparse.ArgumentParser(description="""
......@@ -28,7 +22,15 @@ def main():
args = parser.parse_args()
job_id = args.JOBID
print_job_info(job_id, args.type)
aggr = aggregator.get_aggregator(job_id, "pdf")
formatted = format.format(aggr, args.type)
recommendations = rcm.get_recommendations(aggr)
formatted["recommendations"] = recommendations
return 0
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