Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
钟尚武
physical
Commits
373f0307
Commit
373f0307
authored
Dec 05, 2018
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
fa5eb32d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
topic.py
search/views/topic.py
+3
-3
No files found.
search/views/topic.py
View file @
373f0307
...
...
@@ -11,7 +11,7 @@ from libs.cache import redis_client
from
search.utils.common
import
*
@bind
(
"physical/search/home_recommend"
)
@time_consuming_decorator
#
@time_consuming_decorator
def
home_recommend
(
session_id
=
""
,
user_id
=-
1
,
offset
=
0
,
size
=
10
):
"""
:remark:首页推荐,目前只推荐日记
...
...
@@ -73,7 +73,7 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
@bind
(
"physical/search/home_query"
)
@time_consuming_decorator
#
@time_consuming_decorator
def
home_query
(
session_id
=
""
,
user_id
=-
1
,
query
=
""
,
offset
=
0
,
size
=
10
):
"""
:remark:首页搜索,目前只推荐日记
...
...
@@ -136,7 +136,7 @@ def home_query(session_id="",user_id=-1,query="",offset=0,size=10):
@bind
(
"physical/search/topic_detail_page_recommend"
)
@time_consuming_decorator
#
@time_consuming_decorator
def
topic_detail_page_recommend
(
user_id
=-
1
,
topic_id
=-
1
,
topic_group_id
=-
1
,
topic_user_id
=-
1
,
offset
=
0
,
size
=
10
):
"""
:remark:帖子详情页推荐策略,缺少第一个卡片策略
...
...
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