|
@@ -262,7 +262,8 @@ class Mvp:
|
|
|
if city is None:
|
|
|
city = '无城市'
|
|
|
people_info = PeopleInfo(uuid, city, nld, sex, crowd)
|
|
|
- people_infos.append([uuid, city, nld, sex, crowd])
|
|
|
+ people_infos.append(people_info)
|
|
|
+ # people_infos.append([uuid, city, nld, sex, crowd])
|
|
|
return people_infos
|
|
|
|
|
|
def people_filter(self, city, nld, crowd):
|
|
@@ -469,7 +470,7 @@ class Mvp:
|
|
|
if city is not None and age is not None and crowd is not None:
|
|
|
print('获取指定城市,年龄段,人群类型的数据...')
|
|
|
# people_uuids = self.get_people_uuid_by_type(crowd)
|
|
|
- people_uuids = self.people_filter(city, age, city)
|
|
|
+ people_uuids = self.people_filter(city, age, crowd)
|
|
|
behavior_data = None
|
|
|
if len(people_uuids) > 0:
|
|
|
print('{}-{}-{}'.format(city, age, crowd))
|
|
@@ -492,7 +493,7 @@ class Mvp:
|
|
|
else:
|
|
|
# print(' {}{}'.format(city, age))
|
|
|
# people_uuids = self.get_people_uuid_by_type(crowd_type)
|
|
|
- people_uuids = self.people_filter(city, age, city)
|
|
|
+ people_uuids = self.people_filter(city, age, crowd)
|
|
|
behavior_data = None
|
|
|
if len(people_uuids) > 0:
|
|
|
print('{}-{}-{}'.format(city, age, crowd_type))
|