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
alpha
physical
Commits
3cbe2188
Commit
3cbe2188
authored
6 years ago
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
8588d6e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
topic.py
search/views/topic.py
+2
-2
No files found.
search/views/topic.py
View file @
3cbe2188
...
...
@@ -11,13 +11,13 @@ from libs.cache import redis_client
@bind
(
"physical/search/home_recommend"
)
def
home_recommend
(
ctx
,
user_id
=-
1
,
offset
=
0
,
size
=
10
):
def
home_recommend
(
user_id
=-
1
,
offset
=
0
,
size
=
10
):
"""
:remark:首页推荐,目前只推荐日记,缺少小组打散策略
:return:
"""
try
:
logging
.
info
(
"duan add,ctx:
%
s"
%
str
(
ctx
))
#
logging.info("duan add,ctx:%s" % str(ctx))
if
not
user_id
:
user_id
=-
1
redis_key
=
"physical:home_recommend:"
+
"user_id:"
+
str
(
user_id
)
...
...
This diff is collapsed.
Click to expand it.
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