Commit 5afabee8 authored by lvshibao's avatar lvshibao

seat页面修改

parent 0e53f08c
...@@ -198,7 +198,7 @@ class TasksApi(viewsets.ViewSet): ...@@ -198,7 +198,7 @@ class TasksApi(viewsets.ViewSet):
task_condition['task__in'] = team_names task_condition['task__in'] = team_names
if agent_name != '' or agent_name is not None: if agent_name != '' and agent_name is not None:
task_condition['agentName'] = agent_name task_condition['agentName'] = agent_name
if sort == 'des': if sort == 'des':
seats = SeatStat.objects.filter(**task_condition).extra(select={'agentName': 'agentName'}) \ seats = SeatStat.objects.filter(**task_condition).extra(select={'agentName': 'agentName'}) \
......
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