diff --git a/watcher_dashboard/api/watcher.py b/watcher_dashboard/api/watcher.py index 7ce6423..d29b787 100644 --- a/watcher_dashboard/api/watcher.py +++ b/watcher_dashboard/api/watcher.py @@ -516,7 +516,7 @@ class EfficacyIndicator(base.APIDictWrapper): def __init__(self, indicator): super(EfficacyIndicator, self).__init__(indicator) - self.value = indicator.get('value', None) - self.name = indicator.get('name', None) - self.description = indicator.get('description', None) - self.unit = indicator.get('unit', None) + self.value = getattr(indicator, 'value', None) + self.name = getattr(indicator, 'name', None) + self.description = getattr(indicator, 'description', None) + self.unit = getattr(indicator, 'unit', None)