Commit 03a9d820 authored by lvshibao's avatar lvshibao

seat_check接口的修改

parent 9a488f79
...@@ -159,7 +159,7 @@ def db_seat_check(req, if_page=False): ...@@ -159,7 +159,7 @@ def db_seat_check(req, if_page=False):
tn = CheckSession.set_table(table_name) tn = CheckSession.set_table(table_name)
session_condition = {'taskId__in': v} session_condition = {'taskId__in': v}
if len(agent_names) > 0: if len(agent_names) > 0:
session_condition['agentName__in'] = agent_names session_condition['agentName__in'] = seat_code_name_dict.keys()
all_checks = tn.objects.filter(**session_condition).values('id', 'createdAt', 'agentName', 'extra', 'taskId', all_checks = tn.objects.filter(**session_condition).values('id', 'createdAt', 'agentName', 'extra', 'taskId',
'remainTime', 'startTime', 'closeTime', 'remainTime', 'startTime', 'closeTime',
'scoreItemRecord', 'sessionId') 'scoreItemRecord', 'sessionId')
......
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