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
b33248aa
Commit
b33248aa
authored
Dec 13, 2018
by
段英荣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
modify See merge request
!38
parents
dd7dc6ed
4ded33a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
topic.py
search/views/topic.py
+1
-1
No files found.
search/views/topic.py
View file @
b33248aa
...
@@ -56,7 +56,7 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
...
@@ -56,7 +56,7 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
#if user_id==-1:
#if user_id==-1:
# topic_id_list = list(set([item["id"] for item in topic_id_list]).difference(have_read_topic_id_set))
# topic_id_list = list(set([item["id"] for item in topic_id_list]).difference(have_read_topic_id_set))
logging
.
info
(
"duan add,
have_read_topic_id_set:
%
s"
%
str
(
have_read_topic_id_set
))
logging
.
info
(
"duan add,
redis_field_val_list:
%
s,have_read_topic_id_set:
%
s"
%
(
str
(
redis_field_val_list
),
str
(
have_read_topic_id_set
)
))
for
item
in
topic_id_list
:
for
item
in
topic_id_list
:
if
item
[
"group_id"
]
in
have_read_group_id_set
:
if
item
[
"group_id"
]
in
have_read_group_id_set
:
unread_topic_id_list
.
append
(
item
)
unread_topic_id_list
.
append
(
item
)
...
...
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