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
d45b297b
Commit
d45b297b
authored
Dec 03, 2018
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
f76513ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
user.py
search/utils/user.py
+3
-1
user.py
search/views/user.py
+1
-1
No files found.
search/utils/user.py
View file @
d45b297b
...
@@ -86,7 +86,9 @@ class UserUtils(object):
...
@@ -86,7 +86,9 @@ class UserUtils(object):
],
],
"minimum_should_match"
:
2
,
"minimum_should_match"
:
2
,
"must_not"
:{
"must_not"
:{
"terms"
:
attention_user_id_list
"terms"
:{
"user_id"
:
attention_user_id_list
}
}
}
}
}
},
},
...
...
search/views/user.py
View file @
d45b297b
...
@@ -12,7 +12,7 @@ from search.utils.user import UserUtils
...
@@ -12,7 +12,7 @@ from search.utils.user import UserUtils
@bind
(
"physical/search/recommend_user"
)
@bind
(
"physical/search/recommend_user"
)
def
recommend_user
(
recommend_user_id
=-
1
,
user_id
=-
1
,
offset
=
0
,
size
=
10
):
def
recommend_user
(
user_id
=-
1
,
offset
=
0
,
size
=
10
):
"""
"""
:remark: 点关注推荐用户,缺少按时间排序策略
:remark: 点关注推荐用户,缺少按时间排序策略
:param user_id:
:param user_id:
...
...
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