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

+ 2 - 2
data_manage/pitcher_panel.py

@@ -143,9 +143,9 @@ def get_channel_overview(channel,pitcher,start,end,page,page_size,order_by,order
     if channel!='':
     if channel!='':
         sql+=f" and channel='{channel}'"
         sql+=f" and channel='{channel}'"
     if start!='':
     if start!='':
-        sql+=f" and start>='{start}'"
+        sql+=f" and dt>='{start}'"
     if end!='':
     if end!='':
-        sql+=f" and end<='{end}'"
+        sql+=f" and dt<='{end}'"
     if pitcher!='':
     if pitcher!='':
         sql+=f" and pitcher='{pitcher}'"
         sql+=f" and pitcher='{pitcher}'"
     total = ck.execute(f"select count(1) from ({sql}) a")[0][0]
     total = ck.execute(f"select count(1) from ({sql}) a")[0][0]