Bladeren bron

Merge remote-tracking branch 'origin/master'

syh 4 jaren geleden
bovenliggende
commit
7dbcfbf5b7

+ 2 - 2
time_task/time_task_ai_auto_creative.py

@@ -26,9 +26,9 @@ def send_request(account_id):
 unique_uuid = str(uuid.uuid4())
 print("***********", "素材自动上新-Start, unique_uuid = ", unique_uuid, datetime.datetime.now(), "**************")
 
-# 1、获取已有的账号
+# 1、获取已有的账号, open_program_create 2是不限  1是程序化  0是自定义
 sql = """
-select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1
+select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create in (0,2)
 """
 acc_df = pd.read_sql(sql, engine)
 acc_list = [int(account_id) for account_id in acc_df['account_id'].unique()]

+ 2 - 2
time_task/time_task_ai_high_quality_material.py

@@ -26,9 +26,9 @@ def send_request(account_id):
 unique_uuid = str(uuid.uuid4())
 print("***********", "高质量素材复建-Start, unique_uuid = ", unique_uuid, datetime.datetime.now(), "**************")
 
-# 1、获取已有的账号
+# 1、获取已有的账号, open_program_create 2是不限  1是程序化  0是自定义
 sql = """
-select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1
+select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create in (0,2)
 """
 acc_df = pd.read_sql(sql, engine)
 acc_list = [int(account_id) for account_id in acc_df['account_id'].unique()]

+ 2 - 2
time_task/time_task_ai_historical_missing_material.py

@@ -28,9 +28,9 @@ unique_uuid = str(uuid.uuid4())
 print("***********", "补充历史遗漏素材-Start, unique_uuid = ", unique_uuid, datetime.datetime.now(), "**************")
 
 
-# 1、获取已有的账号
+# 1、获取已有的账号 , open_program_create 2是不限  1是程序化  0是自定义
 sql = """
-select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1
+select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create in (0,2)
 """
 acc_df = pd.read_sql(sql, engine)
 acc_list = [int(account_id) for account_id in acc_df['account_id'].unique()]

+ 2 - 2
time_task/time_task_ai_program_creative_high_quality_materials.py

@@ -26,9 +26,9 @@ def send_request(account_id):
 unique_uuid = str(uuid.uuid4())
 print("***********", "程序化高质量-Start, unique_uuid = ", unique_uuid, datetime.datetime.now(), "**************")
 
-# 1、获取已有的账号
+# 1、获取已有的账号, open_program_create 2是不限  1是程序化  0是自定义
 sql = """
-select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create = 1
+select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create in (1,2)
 """
 acc_df = pd.read_sql(sql, engine)
 acc_list = [int(account_id) for account_id in acc_df['account_id'].unique()]

+ 2 - 2
time_task/time_task_ai_program_creative_new_materials.py

@@ -26,9 +26,9 @@ def send_request(account_id):
 unique_uuid = str(uuid.uuid4())
 print("***********", "程序化上新-Start, unique_uuid = ", unique_uuid, datetime.datetime.now(), "**************")
 
-# 1、获取已有的账号
+# 1、获取已有的账号, open_program_create 2是不限  1是程序化  0是自定义
 sql = """
-select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create = 1
+select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create in (1,2)
 """
 acc_df = pd.read_sql(sql, engine)
 acc_list = [int(account_id) for account_id in acc_df['account_id'].unique()]

+ 2 - 2
time_task/time_task_ai_up_creative_by_hour.py

@@ -27,9 +27,9 @@ unique_uuid = str(uuid.uuid4())
 print("***********", "按小时补充创意-Start, unique_uuid = ", unique_uuid, datetime.datetime.now(), "**************")
 
 
-# 1、获取已有的账号
+# 1、获取已有的账号, open_program_create 2是不限  1是程序化  0是自定义
 sql = """
-select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1
+select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1 and open_program_create in (0,2)
 """
 acc_df = pd.read_sql(sql, engine)
 acc_list = [int(account_id) for account_id in acc_df['account_id'].unique()]