Commit 57cb11bb authored by norvell's avatar norvell
Browse files

Fix for empty cells in report

parent 2d7f4c0b
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -247,8 +247,9 @@ def merge_and_cleanup_mld_reports(
        are uninteresting and are put last.
        are uninteresting and are put last.
        """
        """
        try:
        try:
            float(x[mld_col_curr])
            cols = [mld_col_curr, mld_col_prev] + [p[1] for p in other_col_pairs]
            float(x[mld_col_prev])
            for c in cols:
                float(x[c])
        except ValueError:
        except ValueError:
            # Value is no valid floating point value
            # Value is no valid floating point value
            return float("inf")
            return float("inf")
@@ -263,7 +264,6 @@ def merge_and_cleanup_mld_reports(
            for col_pair in other_col_pairs:
            for col_pair in other_col_pairs:
                col_prev = col_pair[0]
                col_prev = col_pair[0]
                col_curr = col_pair[1]
                col_curr = col_pair[1]
                if x[col_curr] != '' and x[col_prev] != '':
                diff_other += abs(float(x[col_curr]) - float(x[col_prev]))
                diff_other += abs(float(x[col_curr]) - float(x[col_prev]))


            if diff_other > 0:
            if diff_other > 0: