Sfoglia il codice sorgente

처리 위치 변경

Surplus_Up (2DU) 7 anni fa
parent
commit
3101d3a99f
2 ha cambiato i file con 5 aggiunte e 6 eliminazioni
  1. 1 4
      func.py
  2. 4 2
      mark.py

+ 1 - 4
func.py

@@ -61,10 +61,7 @@ def render_set(title = '', data = '', num = 0):
     if acl_check(title, 'render') == 1:
         return 'http request 401.3'
     else:
-        curs.execute('select data from other where name = "markup"')
-        markup = curs.fetchall()
-
-        return namumark(title, data, num, markup[0][0])
+        return namumark(title, data, num)
 
 def captcha_get():
     data = ''

+ 4 - 2
mark.py

@@ -39,9 +39,11 @@ def plusing(data):
         if not curs.fetchall():
             curs.execute("insert into back (title, link, type) values (?, ?, ?)", [data_in[1], data_in[0], data_in[2]])
 
-def namumark(title = '', data = None, num = 0, markup = 'namumark'):
+def namumark(title = '', data = None, num = 0):
     if data != None:
-        if markup == 'namumark':
+        curs.execute('select data from other where name = "markup"')
+        rep_data = curs.fetchall()
+        if rep_data[0][0] == 'namumark':
             data = namu(conn, data, title, num)
         else:
             data = ['', '', []]