Skip to content

Commit

Permalink
Fix missing entries in matrix: labels are always stored in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Mar 26, 2024
1 parent 9868427 commit 23c502b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlx/traceability/directives/item_pie_chart_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def make_pct(pct):
class Match:
""" Class for storing the label and targets for a single source item """
def __init__(self, label):
self.label = label
self.label = label.lower()
self.targets = {}

@property
Expand Down Expand Up @@ -434,7 +434,7 @@ def build_table(self, app):
subheader.get('classes').append('centered')
row += subheader
tbody += row
for source_id, match in {k: v for k, v in self.matches.items() if v.label == label}.items():
for source_id, match in {k: v for k, v in self.matches.items() if v.label == label.lower()}.items():
source = self.collection.get_item(source_id)
tbody += self._rows_per_source(source, match, app)
return table
Expand Down

0 comments on commit 23c502b

Please sign in to comment.