Commit 33d01f6f authored by 李小芳's avatar 李小芳

更新字段

parent 78bdaded
......@@ -1373,7 +1373,7 @@ class Diary(models.Model):
def get_greatest_hits(self, is_headline, closure_tag_ids):
try:
if is_headline == "T":
if is_headline == True:
return 1
elif 1142 in closure_tag_ids:
return 1
......@@ -1386,7 +1386,7 @@ class Diary(models.Model):
def get_diary_you_may_like(self, is_headline, closure_tag_ids):
try:
if is_headline == "T":
if is_headline == True:
return 1
elif 1142 in closure_tag_ids or 1202 in closure_tag_ids or 1144 in closure_tag_ids:
return 1
......
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