summaryrefslogtreecommitdiffstats
path: root/dashboard/dashboard/qtip/format.py
blob: b78fa5b9bb3ecffdbb745b1f81b4ae023856ac2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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