X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=afd8390c919653be2e13410b5a9f23605c7d4c44;hp=920c30a4a85a1aa929b356ad71ce7463e16299ec;hb=2b8547bc50fd06ea936f096794b8c2a5e09c5f8b;hpb=140cc148a75016164875804e6eb82d878f6b0ba9;ds=sidebyside diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 920c30a4a8..afd8390c91 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -237,16 +237,17 @@ def table_performance_improvements(table, input_data): val = tmpl_item[int(args[0])] tbl_item.append({"data": val}) elif cmd == "data": - job = args[0] - operation = args[1] + jobs = args[0:-1] + operation = args[-1] data_lst = list() - for build in data[job]: - try: - data_lst.append(float(build[tmpl_item[0]]["throughput"] - ["value"])) - except (KeyError, TypeError): - # No data, ignore - continue + for job in jobs: + for build in data[job]: + try: + data_lst.append(float(build[tmpl_item[0]] + ["throughput"]["value"])) + except (KeyError, TypeError): + # No data, ignore + continue if data_lst: tbl_item.append({"data": (eval(operation)(data_lst)) / 1000000})