diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/database.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/database.py b/framework/database.py index 926e49f..b5cf4d0 100644 --- a/framework/database.py +++ b/framework/database.py @@ -60,6 +60,11 @@ class ResultDatabase: cursor.execute('INSERT INTO runs VALUES(?,?,?,?)', (date, name, driver, sysinfo)) return date + def listRuns(self): + cursor = self.connection.cursor() + rs = cursor.execute('SELECT * FROM runs ORDER BY date DESC') + return [{'date': r[0], 'name': r[1], 'driver': r[2], 'sysinfo': r[3]} for r in rs] + def addPlaceholderResults(self, run, tests): rows = [(run, test) for test in tests] c = self.connection.cursor() |