From 48475f8f5bfcb9f088193835965cfb570aa88bdc Mon Sep 17 00:00:00 2001 From: jerrylizilong Date: Tue, 26 Mar 2019 14:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=88=B0=20test=20suite=20=E8=BF=9B=E8=A1=8C=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/test_task_manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/db/test_task_manage.py b/app/db/test_task_manage.py index 35818df..4b3dbbf 100644 --- a/app/db/test_task_manage.py +++ b/app/db/test_task_manage.py @@ -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