|
@@ -12,12 +12,12 @@ def title():
|
|
sum(click_count) click_times,
|
|
sum(click_count) click_times,
|
|
sum(view_count) view_times,
|
|
sum(view_count) view_times,
|
|
group_concat(distinct book) novels,
|
|
group_concat(distinct book) novels,
|
|
- max(dt) end_date,min(dt) start_date
|
|
|
|
|
|
+ max(dt) end_date,min(dt) start_date
|
|
from dw_image_cost_day where title!='' and title is not null GROUP BY REPLACE(REPLACE(title, CHAR(10), ''), CHAR(13), '') limit 1000
|
|
from dw_image_cost_day where title!='' and title is not null GROUP BY REPLACE(REPLACE(title, CHAR(10), ''), CHAR(13), '') limit 1000
|
|
"""
|
|
"""
|
|
|
|
|
|
df = db.dm.getData_pd(sql)
|
|
df = db.dm.getData_pd(sql)
|
|
- print(df)
|
|
|
|
|
|
+ # print(df)
|
|
df["data_type"] = 'all'
|
|
df["data_type"] = 'all'
|
|
df['type'] = 1
|
|
df['type'] = 1
|
|
df['create_by'] = 0
|
|
df['create_by'] = 0
|
|
@@ -39,7 +39,7 @@ def description():
|
|
"""
|
|
"""
|
|
|
|
|
|
df = db.dm.getData_pd(sql)
|
|
df = db.dm.getData_pd(sql)
|
|
- print(df)
|
|
|
|
|
|
+ # print(df)
|
|
|
|
|
|
df["data_type"] = 'all'
|
|
df["data_type"] = 'all'
|
|
df['type'] = 2
|
|
df['type'] = 2
|