2DU пре 8 година
родитељ
комит
1c417b604d
2 измењених фајлова са 1 додато и 21 уклоњено
  1. 0 1
      app.py
  2. 1 20
      func.py

+ 0 - 1
app.py

@@ -1579,7 +1579,6 @@ def edit(name = None, num = None):
 
         curs.execute("delete from back where link = ?", [name])
         namumark(name, content, 1, 0, 0)
-        include(name, request.forms.otent, content)
         conn.commit()
         
         return(redirect('/w/' + url_pas(name)))

+ 1 - 20
func.py

@@ -32,26 +32,7 @@ def other2(d):
             g = re.sub(' / $', '', g)
             
     r = d + [g]
-    return(r)
-
-def include(title, old, new):
-    if(re.search('^틀:', title)):
-        old_d = mid_pas(old, 0, 1, 1)[0]
-        new_d = mid_pas(new, 0, 1, 1)[0]
-
-        m1 = re.findall("\[\[(분류:(?:(?:(?!\]\]).)*))\]\]", old_d)
-        m2 = re.findall("\[\[(분류:(?:(?:(?!\]\]).)*))\]\]", new_d)
-
-        curs.execute("select link from back where title = ? and type = 'include'", [title])
-        for x in curs.fetchall():
-            for y in m1:
-                curs.execute("delete from back where link = ? and type = 'cat'", [y])
-
-            for z in m2:
-                backlink_plus(x[0], z, 'cat', 1)
-
-        conn.commit()
-    
+    return(r)    
 
 def wiki_set(num):
     if(num == 1):