ck 4 gadi atpakaļ
vecāks
revīzija
10d1fcb05f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      data_manage/pitcher_panel.py

+ 1 - 1
data_manage/pitcher_panel.py

@@ -69,7 +69,7 @@ total_amount/total_cost total_roi from
                 where dt>='{start}' and dt<='{end}' and pitcher='{pitcher}' 
                 where dt>='{start}' and dt<='{end}' and pitcher='{pitcher}' 
                 group by dt) a
                 group by dt) a
         left outer join (
         left outer join (
-        select dt,total_amount,total_cost from dw_daily_pitcher
+        select dt,total_amount,total_cost  from dw_daily_pitcher where pitcher='{pitcher}'
 ) b on a.dt=b.dt  
 ) b on a.dt=b.dt  
 """
 """
     print(sql)
     print(sql)