Commit b9826e77 authored by lvshibao's avatar lvshibao

check页面修改

parent f42081b1
......@@ -358,7 +358,10 @@ class TasksApi(viewsets.ViewSet):
agent_names = get_agent_name(city_id, country_id, team_id, agent_name)
seat_code_name_lists = Seat.objects.filter(code__in=agent_names).values('code', 'name')
if len(agent_names) > 0:
seat_code_name_lists = Seat.objects.filter(code__in=agent_names).values('code', 'name')
else:
seat_code_name_lists = Seat.objects.filter().values('code', 'name')
seat_code_name_dict = dict()
for seat_code_name in seat_code_name_lists:
seat_code_name_dict[seat_code_name['code']] = seat_code_name['name']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment