Commit 12cfba41 authored by 吴升宇's avatar 吴升宇

fix auto click

parent 7e45a44a
......@@ -28,7 +28,7 @@ def get_commnet_id(numtime, numtime2, content_level_low=0, content_level_top=6):
"SELECT pictorial_id FROM community_pictorial_topic where topic_id=%s limit 1" % i)
pictorial_id = cursor.fetchall()
if pictorial_id is not None:
if pictorial_id:
topic_ids.append((i, pictorial_id[0]))
else:
topic_ids.append((i, 0))
......
......@@ -29,7 +29,7 @@ def get_commnet_id(numtime, numtime2, content_level_low=0, content_level_top=6):
"SELECT pictorial_id FROM community_pictorial_topic where topic_id=%s limit 1" % i)
pictorial_id = cursor.fetchall()
if pictorial_id is not None:
if pictorial_id:
topic_ids.append((i, pictorial_id[0]))
else:
topic_ids.append((i, 0))
......
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