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
fc83ef80
Commit
fc83ef80
authored
Sep 30, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
66286a09
Show 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 @
fc83ef80
...
@@ -855,7 +855,7 @@ def get_device_linucb_tag(device_id=None, size=20, has_score=False, gray_list=[]
...
@@ -855,7 +855,7 @@ def get_device_linucb_tag(device_id=None, size=20, has_score=False, gray_list=[]
linucb_tag_dict_list
=
list
()
linucb_tag_dict_list
=
list
()
linucb_tag_dict
=
dict
()
linucb_tag_dict
=
dict
()
part_recommend_tag_list
=
recommend_tag_list
[
0
:
size
]
part_recommend_tag_list
=
recommend_tag_list
[
0
:
size
]
tag_query_results
=
Tag
.
objects
.
using
(
settings
.
SLAVE_DB_NAME
)
.
filter
(
tag_query_results
=
Tag
.
objects
.
using
(
settings
.
SLAVE
1
_DB_NAME
)
.
filter
(
id__in
=
part_recommend_tag_list
,
is_online
=
True
,
is_deleted
=
False
)
.
values_list
(
"id"
,
"name"
)
id__in
=
part_recommend_tag_list
,
is_online
=
True
,
is_deleted
=
False
)
.
values_list
(
"id"
,
"name"
)
if
has_score
:
if
has_score
:
for
id
,
name
in
tag_query_results
:
for
id
,
name
in
tag_query_results
:
...
@@ -909,7 +909,7 @@ def get_device_linucb_tag2(device_id=None, size=20, has_score=False, gray_list=[
...
@@ -909,7 +909,7 @@ def get_device_linucb_tag2(device_id=None, size=20, has_score=False, gray_list=[
linucb_tag_dict_list
=
list
()
linucb_tag_dict_list
=
list
()
linucb_tag_dict
=
dict
()
linucb_tag_dict
=
dict
()
part_recommend_tag_list
=
recommend_tag_list
[
0
:
size
]
part_recommend_tag_list
=
recommend_tag_list
[
0
:
size
]
tag_query_results
=
Tag
.
objects
.
using
(
settings
.
SLAVE_DB_NAME
)
.
filter
(
tag_query_results
=
Tag
.
objects
.
using
(
settings
.
SLAVE
1
_DB_NAME
)
.
filter
(
id__in
=
part_recommend_tag_list
,
is_online
=
True
,
is_deleted
=
False
)
.
values_list
(
"id"
,
"name"
)
id__in
=
part_recommend_tag_list
,
is_online
=
True
,
is_deleted
=
False
)
.
values_list
(
"id"
,
"name"
)
if
has_score
:
if
has_score
:
result_lst
=
[]
result_lst
=
[]
...
...
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