Commit 0ca4402f authored by lvshibao's avatar lvshibao

group页面修改

parent ee0aadec
...@@ -32,11 +32,13 @@ class DataApi(viewsets.ViewSet): ...@@ -32,11 +32,13 @@ class DataApi(viewsets.ViewSet):
:param req: :param req:
:return: :return:
""" """
city_id = req.data.get('city', None) city_id = req.GET.get('city', None)
country_id = req.data.get('country', None) country_id = req.GET.get('country', None)
sort = req.GET.get('sort', '-avg_score') sort = req.GET.get('sort', '-avg_score')
task_condition = req.data.get('date_condition', {}) task_condition = req.data.get('date_condition', {})
print(country_id)
team_names = get_team_names(city_id, country_id) team_names = get_team_names(city_id, country_id)
task_condition['task__in'] = team_names task_condition['task__in'] = team_names
......
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