Commit 940d063a authored by 高雅喆's avatar 高雅喆

change is_new_pictorial type

parent 2755963b
......@@ -55,13 +55,13 @@ class LikePictorialStat(models.Model):
try:
is_new_pictorial = LikePictorialStat.objects.using(settings.SLAVE1_DB_NAME).filter(pictorial_id=pictorial_id).values_list(
"is_new_pictorial", flat=True).first()
if is_new_pictorial:
return is_new_pictorial
if is_new_pictorial == 0:
return False
else:
return 1
return True
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return 1
return True
@classmethod
def get_pictorial_ctr_30(cls, pictorial_id):
......
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