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
bfa9ab34
Commit
bfa9ab34
authored
Jan 24, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify bug
parent
8523bef7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
topic.py
search/views/topic.py
+2
-3
No files found.
search/views/topic.py
View file @
bfa9ab34
...
...
@@ -68,12 +68,11 @@ def get_home_recommend_topic_ids(user_id,device_id,offset,size,query=None,query_
unread_topic_id_dict
=
dict
()
have_read_topic_id_set
=
set
()
ori_unread_topic_id_dict
=
dict
()
if
redis_field_val_list
[
1
]
and
offset
>
0
:
if
(
user_id
>
0
and
offset
==
last_offset_num
)
or
user_id
==-
1
:
ori_unread_topic_id_dict
=
json
.
loads
(
redis_field_val_list
[
1
])
topic_id_dict
=
ori_unread_topic_id_dict
.
update
(
topic_id_dict
)
if
len
(
ori_unread_topic_id_dict
)
>
0
:
topic_id_dict
.
update
(
ori_unread_topic_id_dict
)
for
have_read_item
in
redis_field_val_list
[
2
:]:
if
have_read_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