Browse Source

冷启动,将抓取计划id存储到抓取计划表

luojunhui 11 months ago
parent
commit
7c24a9ab05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coldStartTasks/publish/publishCategoryArticles.py

+ 1 - 1
coldStartTasks/publish/publishCategoryArticles.py

@@ -59,7 +59,7 @@ class CategoryColdStartTask(object):
             (%s, %s, %s)
         """
         try:
-            self.db_client.insert(
+            self.db_client.update(
                 sql=insert_sql,
                 params=(crawler_plan_id, crawler_plan_name, create_timestamp)
             )