浏览代码

新增公众号抓取

luojunhui 1 月之前
父节点
当前提交
a37ee7dda5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      applications/tasks/crawler_tasks/crawler_gzh.py

+ 1 - 1
applications/tasks/crawler_tasks/crawler_gzh.py

@@ -139,7 +139,7 @@ class CrawlerGzhBaseStrategy(CrawlerPipeline, CrawlerGzhConst):
                         set status = %s 
                         where gh_id = %s and position = %s and dt < %s;
                     """
-                    self.pool.async_save(update_query, (0, gh_id, position, today_dt))
+                    await self.pool.async_save(update_query, (0, gh_id, position, today_dt))
 
 
 class CrawlerGzhAccountArticles(CrawlerGzhBaseStrategy):