Răsfoiți Sursa

https://github.com/openNAMU/openNAMU/issues/1706

잉여개발기 (SPDV) 3 ani în urmă
părinte
comite
4031a16a8a
3 a modificat fișierele cu 5 adăugiri și 2 ștergeri
  1. 3 0
      route/edit_move.py
  2. 1 1
      route/list_title_index.py
  3. 1 1
      version.json

+ 3 - 0
route/edit_move.py

@@ -78,6 +78,9 @@ def edit_move(name):
                     curs.execute(db_change("update back set type = 'no' where title = ? and not type = 'cat' and not type = 'no'"), [name])
                     curs.execute(db_change("delete from back where title = ? and not type = 'cat' and type = 'no'"), [move_title])
 
+                    curs.execute(db_change('select data from other where name = "count_all_title"'))
+                    curs.execute(db_change("update other set data = ? where name = 'count_all_title'"), [str(int(curs.fetchall()[0][0]) - 1)])
+
                     curs.execute(db_change("select id from history where title = ? order by id + 0 desc limit 1"), [move_title])
                     data = curs.fetchall()
 

+ 1 - 1
route/list_title_index.py

@@ -55,7 +55,7 @@ def list_title_index(num = 1):
                         <li>''' + load_lang('all') + ' : ' + all_title[0][0] + '''</li>
                 '''
 
-        data += '</ul>' + next_fix('/list/document/all/', num, title_list, num)
+        data += '</ul>' + next_fix('/list/document/all/', num, title_list)
         sub = ' (' + str(num) + ')'
 
         return easy_minify(flask.render_template(skin_check(),

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.6-RC3-dev142",
+        "r_ver" : "v3.4.6-RC3-dev143",
         "c_ver" : "3500360",
         "s_ver" : "3500111"
     }