|
@@ -223,14 +223,14 @@ def func_2(delete_list):
|
|
|
except:
|
|
|
try:
|
|
|
locals()[table_name] = conn.query_df(
|
|
|
- f"select date,SUM(salesOtherSku1d) as salesOtherSku1d from AmazonReport.`{table_name}` date >='{check_date}' group by date,profileId")
|
|
|
+ f"select date,SUM(salesOtherSku1d) as salesOtherSku1d from AmazonReport.`{table_name}` where date >='{check_date}' group by date,profileId")
|
|
|
except:
|
|
|
try:
|
|
|
locals()[table_name] = conn.query_df(
|
|
|
- f"select date,SUM(salesBrandHalo) as salesBrandHalo from AmazonReport.`{table_name}` date >='{check_date}' group by date,profileId")
|
|
|
+ f"select date,SUM(salesBrandHalo) as salesBrandHalo from AmazonReport.`{table_name}` where date >='{check_date}' group by date,profileId")
|
|
|
except:
|
|
|
locals()[table_name] = conn.query_df(
|
|
|
- f"select date,SUM(sales14d) as sales14d from AmazonReport.`{table_name}` date >='{check_date}' group by date,profileId")
|
|
|
+ f"select date,SUM(sales14d) as sales14d from AmazonReport.`{table_name}` where date >='{check_date}' group by date,profileId")
|
|
|
try:
|
|
|
locals()[table_name].columns = ['date', 'refer_']
|
|
|
locals()[table_name]['refer_'] = locals()[table_name]['refer_'].astype('float64')
|