浏览代码

video insight

丁云鹏 4 月之前
父节点
当前提交
2281ed8253
共有 1 个文件被更改,包括 1 次插入1 次删除
  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_sql = f"""select count(1) from video_demand_analysis where video_id = {video_id}"""
         count = MysqlHelper.get_values(count_sql)
         count = MysqlHelper.get_values(count_sql)
-        if count and count[0][0] == 0:
+        if count and count[0][0] > 0:
             logger.info(f"[处理] 视频重复过滤")
             logger.info(f"[处理] 视频重复过滤")
             return
             return