Procházet zdrojové kódy

优先抓未抓过的账号

luojunhui před 3 měsíci
rodič
revize
904fdaefad
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      coldStartTasks/crawler/weixin_video_crawler.py

+ 2 - 1
coldStartTasks/crawler/weixin_video_crawler.py

@@ -87,7 +87,8 @@ class WeixinVideoCrawler(object):
         select_sql = f"""
             SELECT gh_id, account_name, latest_crawler_timestamp
             FROM weixin_account_for_videos
-            WHERE status = {const.ACCOUNT_CRAWL_STATUS};
+            WHERE status = {const.ACCOUNT_CRAWL_STATUS}
+            ORDER BY latest_crawler_timestamp;
         """
         response = self.db_client.select(select_sql, DictCursor)
         return response