wangkun 2 년 전
부모
커밋
b05d164b01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      weixinzhishu/weixinzhishu_main/run_weixinzhishu_bot.py

+ 1 - 1
weixinzhishu/weixinzhishu_main/run_weixinzhishu_bot.py

@@ -16,8 +16,8 @@ class WeixinzhishuBot:
         if (datetime.datetime.now().hour == 11 and datetime.datetime.now().minute >= 30)\
                 or (datetime.datetime.now().hour == 13 and datetime.datetime.now().minute >= 30):
             Common.logger(log_type, crawler).info("开始检测微信指数 Search_Key 抓取状态")
-            sheet = Feishu.get_values_batch(log_type, crawler, sheetid="sVL74k")
             while True:
+                sheet = Feishu.get_values_batch(log_type, crawler, sheetid="sVL74k")
                 if sheet is None:
                     continue
                 first_key_time_str = sheet[1][0]