Commit 59efda45 authored by lvshibao's avatar lvshibao

seat_check接口的修改

parent 308624d1
......@@ -130,7 +130,6 @@ def db_seat_check(req, if_page=False):
city = Country.objects.filter(id=city_id).first()
if city.parent is not None:
task_condition['name__istartswith'] = city.name
print(task_condition)
tasks = Tasks.objects.filter(**task_condition).values('id', 'name', 'sessionCollectionId')
task_dict = {}
task_name_dict = {}
......@@ -140,7 +139,6 @@ def db_seat_check(req, if_page=False):
task_dict[t['sessionCollectionId']].append(t['id'])
else:
task_dict[t['sessionCollectionId']] = [t['id'], ]
print(task_dict)
return_data = []
total_count = 0
......@@ -161,7 +159,6 @@ def db_seat_check(req, if_page=False):
session_condition = {'taskId__in': v}
if len(agent_names) > 0:
session_condition['agentName__in'] = agent_names
print(session_condition)
all_checks = tn.objects.filter(**session_condition).values('id', 'createdAt', 'agentName', 'extra', 'taskId',
'remainTime', 'startTime', 'closeTime',
'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