diff --git a/services/case_service.py b/services/case_service.py index 8a310f0c95df5e6f4d017f6af01622ba546536bb..a21a10887451425527a366eec0a4a7abed0eb561 100644 --- a/services/case_service.py +++ b/services/case_service.py @@ -542,8 +542,8 @@ async def search_case(data): if __get_priority(pr): pr_list.append(__get_priority(pr)) conditions.append(Case.priority.in_(pr_list)) - if 'test_type' in data: - conditions.append(Case.type == data.get('test_type')) + if 'type' in data: + conditions.append(Case.type == data.get('type')) if 'run_method' in data: conditions.append(Case.run_method == data.get('run_method')) if 'run_model' in data: