Browse Source

flask_app: 调整查询逻辑

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 years ago
parent
commit
96c0a9dee0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flask_app.py

+ 2 - 2
flask_app.py

@@ -183,7 +183,7 @@ class Mvp:
             if len(people_uuids) > 0:
                 print('{}-{}-{}'.format(city, age, crowd))
                 datas = self.behavior_tag_init(city, age, people_uuids)
-                data_start.extend(datas)
+                data_start.append(datas)
                 result.extend(self.calculation_standard_score(datas, city, age, crowd))
             pass
         else:
@@ -197,7 +197,7 @@ class Mvp:
                             if len(people_uuids) > 0:
                                 print('{}-{}-{}'.format(city, age, crowd_type))
                                 datas = self.behavior_tag_init(city, age, people_uuids)
-                                data_start.extend(datas)
+                                data_start.append(datas)
                                 result.extend(self.calculation_standard_score(datas, city, age, crowd_type))
         # return result
         return {'score': result, 'data': data_start}