Skip to content

Commit

Permalink
fix: fixed percentages for retrocompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SteZamboni committed Oct 30, 2024
1 parent 36a7bc9 commit b1cbd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/services/model_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_summarized_percentages(self) -> TotPercentagesDTO:
mq, mq_c = 0, 0
dr, dr_c = 0, 0
for _, metrics in models:
if metrics:
if metrics and metrics.percentages:
dq = dq + (
metrics.percentages['data_quality']['value']
if metrics.percentages['data_quality']['value'] >= 0
Expand Down

0 comments on commit b1cbd84

Please sign in to comment.