Ver Fonte

小年糕分账号规则抓取

罗俊辉 há 1 ano atrás
pai
commit
3a9738992f

+ 2 - 3
xiaoniangao/xiaoniangao_author/xiaoniangao_author_v2.py

@@ -9,6 +9,7 @@ import requests
 from common.mq import MQ
 from common.mq import MQ
 
 
 sys.path.append(os.getcwd())
 sys.path.append(os.getcwd())
+
 from common.common import Common
 from common.common import Common
 from common import AliyunLogger, PiaoQuanPipeline
 from common import AliyunLogger, PiaoQuanPipeline
 from common.public import get_config_from_mysql, clean_title
 from common.public import get_config_from_mysql, clean_title
@@ -265,9 +266,7 @@ class XiaoNianGaoAuthor:
                     mode=self.mode,
                     mode=self.mode,
                     env=self.env,
                     env=self.env,
                     data=video_dict,
                     data=video_dict,
-                    message="发布时间超过{}天".format(
-                        int(self.rule_dict.get("period", {}).get("max", 1000))
-                    ),
+                    message="发布时间超过1天"
                 )
                 )
                 return False
                 return False
             flag = pipeline.repeat_video()
             flag = pipeline.repeat_video()