فهرست منبع

코드 수정

ect (or 2du) 8 سال پیش
والد
کامیت
98583a59f6
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      func.py
  2. 1 1
      mark.py

+ 2 - 2
func.py

@@ -63,7 +63,7 @@ def captcha_post(test, conn, num = 1):
 def ip_warring(conn):
     curs = conn.cursor()
 
-    if(custom(conn)[2] == 0):    
+    if custom(conn)[2] == 0:    
         curs.execute('select data from other where name = "no_login_warring"')
         data = curs.fetchall()
         if data and data[0][0] != '':
@@ -212,7 +212,7 @@ def ip_pas(conn, raw_ip):
     hide = 0
     curs = conn.cursor()
     if re.search("(\.|:)", raw_ip):
-        if(not re.search("^도구:", raw_ip)):    
+        if not re.search("^도구:", raw_ip):    
             curs.execute("select data from other where name = 'ip_view'")
             d = curs.fetchall()
             if d and d[0][0] != '':

+ 1 - 1
mark.py

@@ -80,7 +80,7 @@ def namumark(conn, title, data, num, in_c, toc_y):
             else { if(num % 3 == 0) { fol.style.display = \'block\'; } else { fol.style.display = \'inline-block\'; } } } \
             </script>'
     
-    if(num == 1):        
+    if num == 1:        
         for d4 in backlink:
             t = threading.Thread(target = plusing, args = [conn, d4[0], d4[1], d4[2]])
             t.start()