잉여개발기 (SPDV) пре 7 година
родитељ
комит
2005ede89c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -857,7 +857,7 @@ def ban_check(ip = None, tool = None):
     band_d = curs.fetchall()
     if band_d:
         if tool and tool == 'login':
-            if data[0][0] != 'O':
+            if band_d[0][0] != 'O':
                 return 1
         else:
             return 1
@@ -866,7 +866,7 @@ def ban_check(ip = None, tool = None):
     ban_d = curs.fetchall()
     if ban_d:
         if tool and tool == 'login':
-            if data[0][0] != 'O':
+            if ban_d[0][0] != 'O':
                 return 1
         else:
             return 1