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
faf0c247
Commit
faf0c247
authored
Sep 12, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gyz' into 'master'
增加日志 See merge request
alpha/physical!477
parents
bf0864c7
474599b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
topic.py
search/views/topic.py
+4
-2
No files found.
search/views/topic.py
View file @
faf0c247
...
@@ -349,9 +349,11 @@ def get_topic_and_pictorial_detail_for_debug(device_id = "",linucb_topic_id_list
...
@@ -349,9 +349,11 @@ def get_topic_and_pictorial_detail_for_debug(device_id = "",linucb_topic_id_list
"edit_tags"
:
edit_tag_name_score_list
}})
"edit_tags"
:
edit_tag_name_score_list
}})
logging
.
info
(
"linucb_pictorial:{}"
.
format
(
linucb_pictorial_results
))
logging
.
info
(
"linucb_pictorial:{}"
.
format
(
linucb_pictorial_results
))
# num += 1
# num += 1
logging
.
info
(
"get_topic_and_pictorial_detail_for_debug:result:{}"
.
format
({
"linucb_topic"
:
linucb_topic_results
,
"rank_topic"
:
rank_topic_results
,
"linucb_pictorial"
:
linucb_pictorial_results
}))
result
=
{
"linucb_topic"
:
linucb_topic_results
,
"rank_topic"
:
rank_topic_results
,
"linucb_pictorial"
:
linucb_pictorial_results
}
return
{
"linucb_topic"
:
linucb_topic_results
,
"rank_topic"
:
rank_topic_results
,
"linucb_pictorial"
:
linucb_pictorial_results
}
logging
.
info
(
"get_topic_and_pictorial_detail_for_debug:result:{}:device_id:{}"
.
format
(
result
,
device_id
))
return
result
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
{
"linucb_topic"
:{},
"rank_topic"
:{},
"linucb_pictorial"
:{}}
return
{
"linucb_topic"
:{},
"rank_topic"
:{},
"linucb_pictorial"
:{}}
...
...
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