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
414fc597
Commit
414fc597
authored
Apr 10, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
4db1d038
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pictorial.py
trans2es/models/pictorial.py
+2
-2
No files found.
trans2es/models/pictorial.py
View file @
414fc597
...
...
@@ -79,8 +79,8 @@ class Pictorial(models.Model):
ret
=
False
for
topic_id
in
topic_id_list
:
topic_id_object
=
Topic
.
objects
.
filter
(
id
=
topic_id
)
.
first
()
if
topic_id_object
and
topic_id_object
.
is_online
and
topic_id_object
.
content_level
in
(
0
,
3
,
4
,
5
)
:
topic_id_object
=
Topic
.
objects
.
filter
(
id
=
int
(
topic_id
)
)
.
first
()
if
topic_id_object
and
topic_id_object
.
is_online
and
topic_id_object
.
content_level
in
[
0
,
3
,
4
,
5
]
:
effective_num
+=
1
if
effective_num
>=
5
:
ret
=
True
...
...
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