X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=9fe653cb7951dd91a871c9a5f8ef5ac038c1799c;hp=238102da9a02f99276993efedc444bc4e5dca5b4;hb=7aa0d625baca67d9789b5db3da2ee468597d254b;hpb=73a01b1a7fc836c964627eea2c08106df0da5aee diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 238102da9a..9fe653cb79 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -786,13 +786,15 @@ def table_performance_trending_dashboard(table, input_data): else classification for idx in range(first_idx, len(classification_lst)): if classification_lst[idx] == tmp_classification: - index = idx - break + if rel_change_lst[idx]: + index = idx + break for idx in range(index+1, len(classification_lst)): if classification_lst[idx] == tmp_classification: - if (abs(rel_change_lst[idx]) > - abs(rel_change_lst[index])): - index = idx + if rel_change_lst[idx]: + if (abs(rel_change_lst[idx]) > + abs(rel_change_lst[index])): + index = idx trend = round(float(median_lst[-1]) / 1000000, 2) \ if not isnan(median_lst[-1]) else '-'