|
@@ -43,12 +43,12 @@ def send_request(args):
|
|
|
unique_uuid = str(uuid.uuid4())
|
|
|
logger.info("***********优质定向创建-Start, unique_uuid = %s , time = %s **************" % (unique_uuid, datetime.datetime.now()))
|
|
|
# 1、获取配置了【优质定向】的 account_id 及其 project_id
|
|
|
-# TODO 读取是否配置优质定向的字段,进行判断
|
|
|
+# system_optimization 是开启系统优选 0否 1是
|
|
|
sql = """
|
|
|
select t1.account_id, t2.project_id
|
|
|
from
|
|
|
(select account_id from ctop_ai_kuaishou_advertiser_strategy where status = 1
|
|
|
- -- and open_program_create in (0,2)
|
|
|
+ and system_optimization = 1
|
|
|
) t1
|
|
|
left join
|
|
|
(select project_id,account_id from ctop_user_allocation where project_id in %s) t2
|