Commit 85a9ea27 authored by 段英荣's avatar 段英荣

modify recommend rank

parent 5b2ccd2b
......@@ -147,18 +147,18 @@ class Command(BaseCommand):
group_is_recommend=0.0
# 是否官方推荐小组
if topic_sql_item[0].group and topic_sql_item[0].group.is_recommend:
offline_score += 4.0
group_is_recommend = 4.0
# if topic_sql_item[0].group and topic_sql_item[0].group.is_recommend:
# offline_score += 4.0
# group_is_recommend = 4.0
topic_level_score = 0.0
# 帖子等级
if topic_sql_item[0].content_level == '5':
offline_score += 6.0
topic_level_score = 6.0
elif topic_sql_item[0].content_level == '4':
offline_score += 5.0
topic_level_score = 5.0
elif topic_sql_item[0].content_level == '4':
offline_score += 3.0
topic_level_score = 3.0
elif topic_sql_item[0].content_level == '3':
offline_score += 2.0
topic_level_score = 2.0
......
......@@ -130,8 +130,8 @@ class Topic(models.Model):
user_is_shadow = True
# 是否官方推荐小组
if self.group and self.group.is_recommend:
offline_score += 4.0
# if self.group and self.group.is_recommend:
# offline_score += 4.0
#帖子等级
if self.content_level == '5':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment