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
f4561b4c
Commit
f4561b4c
authored
Apr 12, 2019
by
黄凯
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hk_now' into 'master'
add logging See merge request alpha/physical!242
parents
dfad28a3
134d066e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
collect_data.py
linucb/views/collect_data.py
+2
-2
tag.py
trans2es/models/tag.py
+0
-1
No files found.
linucb/views/collect_data.py
View file @
f4561b4c
...
...
@@ -166,7 +166,7 @@ class CollectData(object):
if
is_online
and
is_collection
==
1
:
click_topic_tag_list
.
append
(
tag_id
)
logging
.
info
(
"click_topic_tag_list:
%
"
%
(
str
(
click_topic_tag_list
)))
logging
.
info
(
"click_topic_tag_list:
%
s
"
%
(
str
(
click_topic_tag_list
)))
click_sql_query_results
=
TopicTag
.
objects
.
using
(
settings
.
SLAVE_DB_NAME
)
.
filter
(
topic_id
=
topic_id
)
.
values_list
(
"tag_id"
,
"is_online"
)
for
tag_id
,
is_online
in
click_sql_query_results
:
if
is_online
:
...
...
@@ -176,7 +176,7 @@ class CollectData(object):
for
id
,
collection
,
is_ai
in
tag_sql_query_results
:
if
(
collection
==
1
or
is_ai
==
1
)
and
id
not
in
click_topic_tag_list
:
click_topic_tag_list
.
append
(
id
)
logging
.
info
(
"click_topic_tag_list:
%
"
%
(
str
(
click_topic_tag_list
)))
logging
.
info
(
"click_topic_tag_list:
%
s
"
%
(
str
(
click_topic_tag_list
)))
is_click
=
1
...
...
trans2es/models/tag.py
View file @
f4561b4c
...
...
@@ -23,7 +23,6 @@ class TopicTag(models.Model):
class
AccountUserTag
(
models
.
Model
):
class
Meta
:
verbose_name
=
u"用户标签"
...
...
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