ck 4 lat temu
rodzic
commit
8d3fcd4408
1 zmienionych plików z 14 dodań i 14 usunięć
  1. 14 14
      dgp/tests/get_campaign_daily.py

+ 14 - 14
dgp/tests/get_campaign_daily.py

@@ -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