|
@@ -113,7 +113,7 @@ class Mvp:
|
|
|
# self.shangju_db.truncate('mvp_question_classification')
|
|
|
# self.shangju_db.add_some(self.sql_3, datas)
|
|
|
scores_behavioral = self.city_age_crowd(city, age, crowd)
|
|
|
- scores_module = self.module_score(crowd, city, age, scores_behavioral)
|
|
|
+ scores_module = self.module_score(crowd, city, age, scores_behavioral['score'])
|
|
|
result = {'行为兴趣分值': scores_behavioral, '模块分值': scores_module}
|
|
|
print('update finished!!!')
|
|
|
return result
|
|
@@ -200,7 +200,7 @@ class Mvp:
|
|
|
data_start.extend(datas)
|
|
|
result.extend(self.calculation_standard_score(datas, city, age, crowd_type))
|
|
|
# return result
|
|
|
- return {'分数': result, '原始值': data_start}
|
|
|
+ return {'score': result, 'data': data_start}
|
|
|
|
|
|
def behavior_tag_init(self, city, age, people_uuids):
|
|
|
result = {}
|