修复无法查询到 test suite 进行执行的问题

This commit is contained in:
jerrylizilong 2019-03-26 14:20:42 +08:00
parent 7daba32e0f
commit 48475f8f5b
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
from app import useDB
from app.db import test_batch_manage
class test_task_manage():
def test_suite_list(self,runtype='2'):
sql = 'select id,run_type from test_suite where status in (0,2) and run_type = "%s";' %runtype
def test_suite_list(self):
sql = 'select id,run_type from test_suite where status in (0,2) and run_type in ("2","Chrome)";'
idList = useDB.useDB().search(sql)
return idList