summaryrefslogtreecommitdiffstats
path: root/api/database/v2/handlers.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-07-21 03:18:02 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-07-21 03:18:02 +0000
commit869d5fdb0b7a6070a78b4ec21d6b6c1cba14da6c (patch)
treedb4cb5ab9e4686364fed5cc1efa48f70dd9fc904 /api/database/v2/handlers.py
parent5e990920118b960b0315dd39ac92463835d00362 (diff)
Add API(v2) to get all task info
JIRA: YARDSTICK-754 API: /api/v2/yardstick/tasks METHOD: GET Change-Id: I556b0880674d78d67e0a556c4d95f902131cd027 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/database/v2/handlers.py')
-rw-r--r--api/database/v2/handlers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/database/v2/handlers.py b/api/database/v2/handlers.py
index 44c14df61..1bc32bf0e 100644
--- a/api/database/v2/handlers.py
+++ b/api/database/v2/handlers.py
@@ -173,6 +173,9 @@ class V2ProjectHandler(object):
class V2TaskHandler(object):
+ def list_all(self):
+ return V2Task.query.all()
+
def insert(self, kwargs):
task = V2Task(**kwargs)
db_session.add(task)