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
730866a1
Commit
730866a1
authored
Mar 21, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
15bd6648
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pictorial.py
trans2es/models/pictorial.py
+3
-3
No files found.
trans2es/models/pictorial.py
View file @
730866a1
...
...
@@ -71,7 +71,7 @@ class Pictorial(models.Model):
logging
.
info
(
"get topic_id_list:
%
s"
%
topic_id_list
)
topic_num
=
Topic
.
filter
(
content_level__in
=
[
"4"
,
"5"
],
create_time__gte
=
yesterday_begin_time
,
topic_num
=
Topic
.
objects
.
filter
(
content_level__in
=
[
"4"
,
"5"
],
create_time__gte
=
yesterday_begin_time
,
create_time__lte
=
yesterday_end_time
,
topic_id_in
=
topic_id_list
)
.
count
()
logging
.
info
(
"get topic_num:
%
s"
%
topic_num
)
...
...
@@ -96,10 +96,10 @@ class Pictorial(models.Model):
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
False
def
get_tag_by_name
(
self
,
tag_id
):
def
get_tag_by_name
(
self
,
tag_id
):
try
:
tag_name_list
=
[]
logging
.
info
(
"get tag_id:
%
s"
%
tag_id
)
logging
.
info
(
"get tag_id:
%
s"
%
tag_id
)
tags
=
Tag
.
objects
.
filter
(
id_in
=
tag_id
,
is_online
=
True
)
.
values_list
(
"name"
,
flat
=
True
)
logging
.
info
(
"get tags name :
%
s"
%
tags
)
...
...
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