2DU 8 лет назад
Родитель
Сommit
388166a225
3 измененных файлов с 5 добавлено и 4 удалено
  1. 2 1
      app.py
  2. 2 2
      set_mark/mark.py
  3. 1 1
      version.md

+ 2 - 1
app.py

@@ -44,7 +44,7 @@ from func import *
 
 
 BaseRequest.MEMFILE_MAX = 1000 ** 4
 BaseRequest.MEMFILE_MAX = 1000 ** 4
 
 
-r_ver = '2.3.8'
+r_ver = '2.3.9'
 
 
 # 스킨 불러오기 부분
 # 스킨 불러오기 부분
 try:
 try:
@@ -1634,6 +1634,7 @@ def edit(name = None, name2 = None, num = None):
             curs.execute("update data set data = ? where title = ?", [content, name])
             curs.execute("update data set data = ? where title = ?", [content, name])
         else:
         else:
             leng = '+' + str(len(content))
             leng = '+' + str(len(content))
+            curs.execute("delete from back where title = ? and type = 'no'", [name])
             curs.execute("insert into data (title, data, acl) values (?, ?, '')", [name, content])
             curs.execute("insert into data (title, data, acl) values (?, ?, '')", [name, content])
 
 
         history_plus(name, content, today, ip, send_p(request.forms.send), leng)
         history_plus(name, content, today, ip, send_p(request.forms.send), leng)

+ 2 - 2
set_mark/mark.py

@@ -34,9 +34,9 @@ def url_pas(data):
     
     
 async def plusing(conn, name, link, backtype):
 async def plusing(conn, name, link, backtype):
     curs = conn.cursor()
     curs = conn.cursor()
-    curs.execute("select title from back where title = ? and link = ? and type = ?", [name, link, backtype])
+    curs.execute("select title from back where title = ? and link = ? and type = ?", [link, name, backtype])
     if(not curs.fetchall()):
     if(not curs.fetchall()):
-        curs.execute("insert into back (title, link, type) values (?, ?,  ?)", [name, link, backtype])
+        curs.execute("insert into back (title, link, type) values (?, ?,  ?)", [link, name, backtype])
 
 
 def namumark(conn, title, data, num, in_c, toc_y):  
 def namumark(conn, title, data, num, in_c, toc_y):  
     data = start.start(data)
     data = start.start(data)

+ 1 - 1
version.md

@@ -139,7 +139,7 @@
 
 
 ----
 ----
 ## 기타
 ## 기타
- * 최신 버전 - v2.3.8
+ * 최신 버전 - v2.3.9
 
 
 ----
 ----
 ## 개발 이념
 ## 개발 이념