Przeglądaj źródła

언어 버그 수정

Surplus_Up (2DU) 7 lat temu
rodzic
commit
8bdc062a7d
1 zmienionych plików z 1 dodań i 9 usunięć
  1. 1 9
      func.py

+ 1 - 9
func.py

@@ -144,7 +144,7 @@ def captcha_post(re_data, num = 1):
     else:
         pass
 
-def load_lang(data, num = 1):
+def load_lang(data, num = 2):
     if num == 1:
         curs.execute("select data from other where name = 'language'")
         rep_data = curs.fetchall()
@@ -156,14 +156,6 @@ def load_lang(data, num = 1):
             return lang[data]
         else:
             return data + ' (missing)'
-    elif num == 2:
-        curs.execute('select data from user_set where name = "lang" and id = ?', [ip_check()])
-        rep_data = curs.fetchall()
-        if not rep_data:
-            curs.execute("select data from other where name = 'language'")
-            rep_data = curs.fetchall()
-
-        return rep_data[0][0]
     else:
         curs.execute('select data from user_set where name = "lang" and id = ?', [ip_check()])
         rep_data = curs.fetchall()