diff options
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r-- | gsxws/repairs.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py index b7716ae..d84372c 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -54,9 +54,20 @@ class SymptomIssue(GsxObject): _namespace = "asp:" def fetch(self): + result = [] self._submit("requestData", "ReportedSymptomIssue", "ReportedSymptomIssueResponse") - return self._req.objects.reportedSymptomIssueResponse + r = self._req.objects.reportedSymptomIssueResponse + + if r.symptoms is not None: + for s in r.symptoms: + result.append((s.reportedSymptomCode, s.reportedSymptomDesc,)) + + if r.issues is not None: + for s in r.issues: + result.append((s.reportedIssueCode, s.reportedIssueDesc,)) + + return result class CompTiaCode(GsxObject): |