Explorar el Código

新增公众号抓取

luojunhui hace 3 meses
padre
commit
a37ee7dda5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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):