Parcourir la source

flask_app: 数据提取调整逻辑

Signed-off-by: binren <zhangbr@elab-plus.com>
binren il y a 5 ans
Parent
commit
75e626d632
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      flask_app.py

+ 2 - 2
flask_app.py

@@ -190,10 +190,10 @@ class Mvp:
         else:
             print('获取所有case的数据...')
             # for city in self.citys:
-            for city in ['上海市', '杭州市', '苏州市', '无锡市', '宁波市']:
+            for city in [city]:
                 for age in self.age:
                     if city != '上海市' and age != '85-89年生':
-                        for crowd_type in self.crowd:
+                        for crowd_type in [crowd]:
                             # print(' {}{}'.format(city, age))
                             people_uuids = self.get_people_uuid_by_type(crowd_type)
                             if len(people_uuids) > 0: