Browse Source

mvp: 城市分类规则修改

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

+ 2 - 2
mvp.py

@@ -441,7 +441,7 @@ class Mvp:
                         # 从答题结果中获取城市信息
                         citys = self.marketing_db.select(self.sql_16, [uuid])
                         if len(citys) > 0:
-                            city = '上海市' if citys[0][1] == '一线' else '上海周边'
+                            city = '上海市' if (citys[0][1] == '一线' or citys[0][1] == '上海') else '上海周边'
                     # 根据用户子选项id集合,获取用户的人群分类
                     if len(gt_75) > 0:
                         # 特定的测试人群分类从答题结果中获取
@@ -482,7 +482,7 @@ class Mvp:
     def update_data(self):
         """
             定时更新分值
-            使用真实数据模块名称:用户画像-行为兴趣,空间需求图谱-材质,空间需求图谱-色调,空间需求图谱-色相
+            使用真实数据模块名称:空间需求图谱-材质,空间需求图谱-色调,空间需求图谱-色相
             用户画像-行业,用户画像-出行方式,用户画像-消费结构,用户画像-生活方式,用户画像-社交模式, 模块分数
         :return:
         """