diff --git a/compensation/utils/quality.py b/compensation/utils/quality.py index f883ba36..193cf9a2 100644 --- a/compensation/utils/quality.py +++ b/compensation/utils/quality.py @@ -30,7 +30,10 @@ class CompensationQualityChecker(AbstractQualityChecker): """ after_states = self.obj.get_surface_after_states() before_states = self.obj.get_surface_before_states() - if after_states != before_states: + sum_after_states_surface = self.obj.get_surface_after_states() + sum_before_states_surface = self.obj.get_surface_before_states() + + if sum_after_states_surface != sum_before_states_surface: self.messages.append( _("States unequal") )