diff options
author | 2015-10-19 12:44:00 +0000 | |
---|---|---|
committer | 2015-10-19 12:44:00 +0000 | |
commit | fd27b7a9543e430602b7e2fca339b1f84a189142 (patch) | |
tree | 1b2e26573b72ef6fda1d6f553a0817483b54338f /utils/test/result_collection_api/resources/models.py | |
parent | 6b6c90969ed9c4ed286738a1f28582a3126f8a38 (diff) | |
parent | 97ce096c0ed49a09301d762b812504f3038e9843 (diff) |
Merge "add dashboard method to test result collection API + add new fields in pod section"
Diffstat (limited to 'utils/test/result_collection_api/resources/models.py')
-rw-r--r-- | utils/test/result_collection_api/resources/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/resources/models.py b/utils/test/result_collection_api/resources/models.py index 3b4d843f3..6829416bc 100644 --- a/utils/test/result_collection_api/resources/models.py +++ b/utils/test/result_collection_api/resources/models.py @@ -14,6 +14,8 @@ class Pod: self._id = "" self.name = "" self.creation_date = "" + self.mode = "" + self.details = "" @staticmethod def pod_from_dict(pod_dict): @@ -24,11 +26,15 @@ class Pod: p._id = pod_dict.get('_id') p.creation_date = str(pod_dict.get('creation_date')) p.name = pod_dict.get('name') + p.mode = pod_dict.get('mode') + p.details = pod_dict.get('details') return p def format(self): return { "name": self.name, + "mode": self.mode, + "details": self.details, "creation_date": str(self.creation_date), } @@ -36,6 +42,8 @@ class Pod: return { "_id": str(self._id), "name": self.name, + "mode": self.mode, + "details": self.details, "creation_date": str(self.creation_date), } |