def buildTestSummaries(project): gm = DatazillaModel(project) timeRanges = utils.get_time_ranges() products = gm.getProducts() for productName in products: for tr in ['days_7', 'days_30']: table = gm.getTestRunSummary(str( timeRanges[tr]['start']), str( timeRanges[tr]['stop']), [ products[ productName ] ], [], []) jsonData = json.dumps( table ) gm.setSummaryCache( products[ productName ], tr, jsonData ) gm.disconnect()