Procházet zdrojové kódy

新增公众号抓取

luojunhui před 3 měsíci
rodič
revize
a37ee7dda5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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):