diff options
-rwxr-xr-x | gsxws.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -251,14 +251,15 @@ class CompTIA: def symptoms(self, component=None): symptoms = self.data['symptoms'] - if component: - r = list() - for k, v in symptoms[component].items(): - r.append((k, v)) + if component is None: + return symptoms - return r + r = list() - return symptoms + for k, v in symptoms[component].items(): + r.append((k, v)) + + return r def modifiers(self): modifiers = list() |