|
@@ -60,7 +60,7 @@ def run(dt):
|
|
|
# print(data)
|
|
|
# exit(0)
|
|
|
sql_video = f"""SELECT a.dt,b.type,sum(a.cost),sum(view_count),sum(click_count),sum(follow_count),sum(order_count),sum(order_amount),
|
|
|
- title,description,book,platform,stage,e.channel,pitcher,ifnull(image_id,''),g.signature,g.preview_url,1
|
|
|
+ title,description,book,platform,stage,e.channel,pitcher,ifnull(image_id,''),g.preview_url,g.signature,1
|
|
|
from
|
|
|
ad_cost_day a
|
|
|
left join ad_info b on a.ad_id=b.ad_id
|
|
@@ -76,7 +76,6 @@ def run(dt):
|
|
|
data.extend(data_video)
|
|
|
|
|
|
|
|
|
-
|
|
|
# print(data)
|
|
|
|
|
|
|
|
@@ -99,8 +98,8 @@ def day():
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- run('2021-05-18')
|
|
|
+ # run('2021-05-18')
|
|
|
|
|
|
- # for i in du.getDateLists('2021-05-01','2021-05-09'):
|
|
|
- # print(i)
|
|
|
- # run(i)
|
|
|
+ for i in du.getDateLists('2021-05-01','2021-05-20'):
|
|
|
+ print(i)
|
|
|
+ run(i)
|