ソースを参照

video insight

丁云鹏 1 ヶ月 前
コミット
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