Explorar o código

video insight

丁云鹏 hai 1 mes
pai
achega
2281ed8253
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      workers/video_insight_consumption_work.py

+ 1 - 1
workers/video_insight_consumption_work.py

@@ -35,7 +35,7 @@ class ConsumptionRecommend(object):
 
         count_sql = f"""select count(1) from video_demand_analysis where video_id = {video_id}"""
         count = MysqlHelper.get_values(count_sql)
-        if count and count[0][0] == 0:
+        if count and count[0][0] > 0:
             logger.info(f"[处理] 视频重复过滤")
             return