Commit 28d0f0d4 authored by lvshibao's avatar lvshibao

seat_check接口的修改

parent 7633b9d3
......@@ -130,6 +130,7 @@ 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 = {}
......@@ -139,6 +140,7 @@ 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
......
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