Index: dashboard/dashboard/pinpoint/models/attempt.py |
diff --git a/dashboard/dashboard/pinpoint/models/attempt.py b/dashboard/dashboard/pinpoint/models/attempt.py |
index f40f5d9713a65614a6233afd6089cc0edd4d72c7..6bae3295caaa3e3fdfa5eda9e57126847e1741f1 100644 |
--- a/dashboard/dashboard/pinpoint/models/attempt.py |
+++ b/dashboard/dashboard/pinpoint/models/attempt.py |
@@ -48,6 +48,10 @@ class Attempt(object): |
return dict((quest, execution.result_values) |
for quest, execution in zip(self._quests, self._executions)) |
+ def AsDictPerQuest(self): |
dtu
2017/08/21 23:52:52
nit: put methods after properties
dtu
2017/08/21 23:52:52
It would be more consistent to provide an Attempt.
shatch
2017/08/22 01:23:55
Done.
shatch
2017/08/22 01:23:55
Done.
|
+ return dict((quest, execution.AsDict()) |
+ for quest, execution in zip(self._quests, self._executions)) |
+ |
@property |
def _last_execution(self): |
return self._executions[-1] |