Browse Source

add 快手 增加日志

zhangyong 1 year ago
parent
commit
5f00c4154e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

+ 2 - 2
kuaishou/kuaishou_author/kuaishou_author_scheduling_new.py

@@ -193,13 +193,13 @@ class KuaishouauthorScheduling:
                     date_three_days_ago_string = (date.today() + timedelta(days=-60)).strftime("%Y-%m-%d %H:%M:%S")
                     rule = publish_time_str > date_three_days_ago_string
                     if rule == False:
-                        Common.logger(log_type, crawler).info(f"发布时间小于60天,发布时间:{rule}\n")
+                        Common.logger(log_type, crawler).info(f"发布时间小于60天,发布时间:{publish_time_str}\n")
                         AliyunLogger.logging(
                             code="2004",
                             platform=crawler,
                             mode=log_type,
                             env=env,
-                            message=f"发布时间小于60天,发布时间:{rule}\n"
+                            message=f"发布时间小于60天,发布时间:{publish_time_str}\n"
                         )
                         continue
                     realLikeCount = int(feeds[i].get('photo', {}).get('realLikeCount', 0))