Commit 414fc597 authored by 段英荣's avatar 段英荣

modify

parent 4db1d038
...@@ -79,8 +79,8 @@ class Pictorial(models.Model): ...@@ -79,8 +79,8 @@ class Pictorial(models.Model):
ret = False ret = False
for topic_id in topic_id_list: for topic_id in topic_id_list:
topic_id_object = Topic.objects.filter(id=topic_id).first() 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): if topic_id_object and topic_id_object.is_online and topic_id_object.content_level in [0,3,4,5]:
effective_num += 1 effective_num += 1
if effective_num >= 5: if effective_num >= 5:
ret = True ret = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment