ck hace 4 años
padre
commit
ebee68d64f
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2 0
      config/common_config.py
  2. 2 2
      data_manage/pitcher_panel.py

+ 2 - 0
config/common_config.py

@@ -0,0 +1,2 @@
+
+super_auth = [1, 158]

+ 2 - 2
data_manage/pitcher_panel.py

@@ -4,6 +4,7 @@ from model.log import logger
 from model.CommonUtils import *
 from model import UserAuthUtils
 du = DateUtils()
+from config.common_config import *
 
 log = logger()
 
@@ -576,8 +577,7 @@ left join src_book_info c on a.dt=c.dt and a.book=c.book  and a.type=c.type and
 def get_channel_summary(user_id,channel,pitcher,page,page_size,order_by,order,state,location,start,end):
     db=MysqlUtils()
 
-    op = f" and a.channel in {str(UserAuthUtils.get_auth_channel(user_id))}"
-    print(op)
+    op = f" and a.channel in {str(UserAuthUtils.get_auth_channel(user_id))}" if user_id not in super_auth else ''
 
     op1=f" and a.channel='{channel}'" if channel else ''