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
a9dfad94
Commit
a9dfad94
authored
Mar 21, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
54b990d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
pictorial.py
trans2es/models/pictorial.py
+5
-5
No files found.
trans2es/models/pictorial.py
View file @
a9dfad94
...
...
@@ -4,7 +4,7 @@ import logging
import
traceback
from
.tag
import
Tag
from
.topic
import
Topic
Complaint
from
.topic
import
Topic
class
PictorialTopic
(
models
.
Model
):
...
...
@@ -71,10 +71,10 @@ 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,
#
create_time__lte=yesterday_end_time, topic_id_in=topic_id_list).count()
#
#
logging.info("get topic_num:%s" % topic_num)
topic_num
=
Topic
.
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
)
return
topic_num
...
...
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