ck 4 år sedan
förälder
incheckning
07e3859f30
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      data_manage/pitcher_panel.py

+ 2 - 1
data_manage/pitcher_panel.py

@@ -158,9 +158,10 @@ def get_channel_overview(channel,pitcher,start,end,page,page_size,order_by,order
     if pitcher!='':
         if pitcher!='赞象 admin':
             sql+=f" and channel in {get_channels_from_user(pitcher)}"
+    print(sql)
     total = ck.execute(f"select count(1) from ({sql}) a")[0][0]
     sql += f" order by {order_by} {order} limit {(page-1)*page_size},{page_size} "
-    print(sql)
+    
 
     key=['channel','date','view_count','click_count','click_rate','follow_user','follow_rate','follow_per_cost','order_rate','order_per_cost','cost',
          'first_order_count','first_order_user','first_order_amount','order_count','order_user','order_amount','old_order_amount','first_amount_per_user','amount_per_follow','first_cost_per_user',