Explorar el Código

video insight

丁云鹏 hace 1 mes
padre
commit
2281ed8253
Se han modificado 1 ficheros con 1 adiciones y 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