Explorar o código

Merge branch 'dev'

ck %!s(int64=4) %!d(string=hai) anos
pai
achega
af028c8632
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      data_manage/public_analysis.py

+ 4 - 1
data_manage/public_analysis.py

@@ -391,8 +391,11 @@ def boss_panel_summary(user_id,start,end,channel,pitcher, type, stage, page, pag
     if user_id in super_auth():
         op = ''
     else:
-        if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
+        x = UserAuthUtils.get_auth_channel(user_id)
+        if len(x) == 0:
             return None, None
+        elif len(x) == 1:
+            op = f" and channel ='{x[0]}'"
         else:
             op = f" and channel in {str(UserAuthUtils.get_auth_channel(user_id))}"