|
@@ -557,20 +557,20 @@ def get_campaign_update_list():
|
|
|
|
|
|
except:
|
|
|
db.rollback()
|
|
|
-
|
|
|
- a = []
|
|
|
- if len(x)>0:
|
|
|
- for t in x:
|
|
|
- a.append(int(t[2]))
|
|
|
-
|
|
|
- sql2 = 'delete from adcreative where campaign_id in {}'.format(str(tuple(a)))
|
|
|
- try:
|
|
|
- cursor.executemany(sql2,a)
|
|
|
- db.commit()
|
|
|
- cursor.fetchall()
|
|
|
-
|
|
|
- except:
|
|
|
- db.rollback()
|
|
|
+ # 老的素材信息不删除
|
|
|
+ # a = []
|
|
|
+ # if len(x)>0:
|
|
|
+ # for t in x:
|
|
|
+ # a.append(int(t[2]))
|
|
|
+ #
|
|
|
+ # sql2 = 'delete from adcreative where campaign_id in {}'.format(str(tuple(a)))
|
|
|
+ # try:
|
|
|
+ # cursor.executemany(sql2,a)
|
|
|
+ # db.commit()
|
|
|
+ # cursor.fetchall()
|
|
|
+ #
|
|
|
+ # except:
|
|
|
+ # db.rollback()
|
|
|
|
|
|
return x
|
|
|
|