Explorar el Código

众妙音信推荐————把 platform 从 "众妙音信"修改为"zhongmiaoyinxin"

罗俊辉 hace 1 año
padre
commit
6c077605d1

+ 2 - 2
zhongmiaoyinxin/zhongmiaoyinxin_recommend/zhongmiaoyinxin_recommend.py

@@ -22,7 +22,7 @@ from common.scheduling_db import MysqlHelper
 
 
 class ZhongmiaoyinxinRecommend:
-    platform = "众妙音信"
+    platform = "zhongmiaoyinxin"
     i = 0
 
     @classmethod
@@ -160,7 +160,7 @@ class ZhongmiaoyinxinRecommend:
 
     @classmethod
     def repeat_out_video_id(cls, log_type, crawler, out_video_id, env):
-        sql = f""" select * from crawler_video where platform in ("众妙音信", "刚刚都传", "吉祥幸福", "知青天天看", "zhufuquanzi", "祝福圈子", "haitunzhufu", "海豚祝福") and out_video_id="{out_video_id}"; """
+        sql = f""" select * from crawler_video where platform in ("zhongmiaoyinxin", "刚刚都传", "吉祥幸福", "知青天天看", "zhufuquanzi", "祝福圈子", "haitunzhufu", "海豚祝福") and out_video_id="{out_video_id}"; """
         repeat_video = MysqlHelper.get_values(log_type, crawler, sql, env)
         return len(repeat_video)