Преглед на файлове

修改上新代码逻辑

syh преди 4 години
родител
ревизия
412954bbcd
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 2
      ai_auto_create_creative_job.py
  2. 1 0
      ai_strategy_request_handler.py

+ 2 - 2
ai_auto_create_creative_job.py

@@ -10,10 +10,10 @@ dateUtils = DateUtils()
 
 class AiAutoCreateCreativeJob():
 
-    def auto_create_job(self):
+    def auto_create_job(self,account_id):
         response_dict = ResultDictUtils.common_success_dict
         # 查询需要自动创建创意的模板信息
-        templates = mysqlUtils.get_all_ai_account_target_template_by_params(1)
+        templates = mysqlUtils.get_all_ai_account_target_template_by_params(1,account_id)
         if len(templates):
             for item in templates:
                 self.create_creative(item)

+ 1 - 0
ai_strategy_request_handler.py

@@ -12,6 +12,7 @@ from db_config import *
 
 
 class AiStrategyRequestParse(tornado.web.RequestHandler):
+
     def initialize(self, logger):
         self.logger = logger