summaryrefslogtreecommitdiffstats
path: root/dashboard/dashboard/qtip/format.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/dashboard/qtip/format.py')
-rw-r--r--dashboard/dashboard/qtip/format.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/dashboard/dashboard/qtip/format.py b/dashboard/dashboard/qtip/format.py
new file mode 100644
index 0000000..b78fa5b
--- /dev/null
+++ b/dashboard/dashboard/qtip/format.py
@@ -0,0 +1,19 @@
+#! /usr/bin/env python
+
+
+def format_qpi(testcase):
+ """
+ Look for these and leave any of those:
+ details.index
+
+ If none are present, then return False
+ """
+ details = testcase['details']
+ if 'index' not in details:
+ return False
+
+ for key, value in details.items():
+ if key != 'index':
+ del details[key]
+
+ return True