Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
graces_es6
Commits
33d01f6f
Commit
33d01f6f
authored
Nov 04, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新字段
parent
78bdaded
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
diary.py
talos/models/diary/diary.py
+2
-2
No files found.
talos/models/diary/diary.py
View file @
33d01f6f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment