Browse Source

history_task.py 增加了账号的negative category的判断

response.py 增加一个新的code 96,表示该文章品类不适合该账号
luojunhui 5 months ago
parent
commit
4427abf1a5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tasks/history_task.py

+ 3 - 2
tasks/history_task.py

@@ -289,10 +289,11 @@ class historyContentIdTask(object):
         content_id = params['content_id']
         trace_id = params['trace_id']
         flow_pool_level = params['flow_pool_level']
+        gh_id = params['gh_id']
         if flow_pool_level == "autoArticlePoolLevel4":
             # 校验文章是否属于该账号的negative 类型
-            category_status = await self.check_title_whether_exit(content_id)
-            if category_status:
+            negative_category_status = await self.check_title_category(content_id=content_id, gh_id=gh_id)
+            if negative_category_status:
                 # 修改状态为品类不匹配状态
                 affected_rows = await self.update_content_status(
                     trace_id=trace_id,