Sfoglia il codice sorgente

Merge pull request #814 from 2du/master

stable 03?
잉여개발기 (SPDV) 6 anni fa
parent
commit
3b9eeddfb8
4 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. 4 1
      app.py
  2. 2 2
      route/list_old_page.py
  3. 2 2
      route/list_please.py
  4. 4 4
      version.json

+ 4 - 1
app.py

@@ -170,7 +170,10 @@ for i in create_data['all_data']:
     try:
         curs.execute(db_change('select test from ' + i + ' limit 1'))
     except:
-        curs.execute(db_change('create table ' + i + '(test longtext)'))
+        try:
+            curs.execute(db_change('create table ' + i + '(test longtext)'))
+        except:
+            curs.execute(db_change("alter table " + i + " add test longtext default ''"))
 
 if setup_tool == 0:
     try:

+ 2 - 2
route/list_old_page.py

@@ -10,7 +10,7 @@ def list_old_page_2(conn):
         sql_num = 0
 
     curs.execute(db_change('select data from other where name = "count_all_title"'))
-    if int(curs.fetchall()[0][0]) < 30000:
+    if int(curs.fetchall()[0][0]) > 30000:
         return re_error('/error/25')
 
     div = '<ul>'
@@ -34,4 +34,4 @@ def list_old_page_2(conn):
         imp = [load_lang('old_page'), wiki_set(), custom(), other2([0, 0])],
         data = div,
         menu = [['other', load_lang('return')]]
-    ))
+    ))

+ 2 - 2
route/list_please.py

@@ -10,7 +10,7 @@ def list_please_2(conn):
         sql_num = 0
 
     curs.execute(db_change('select data from other where name = "count_all_title"'))
-    if int(curs.fetchall()[0][0]) < 30000:
+    if int(curs.fetchall()[0][0]) > 30000:
         return re_error('/error/25')
 
     div = '<ul>'
@@ -26,4 +26,4 @@ def list_please_2(conn):
         imp = [load_lang('need_document'), wiki_set(), custom(), other2([0, 0])],
         data = div,
         menu = [['other', load_lang('return')]]
-    ))
+    ))

+ 4 - 4
version.json

@@ -1,11 +1,11 @@
 {
     "master" : {
-        "r_ver" : "v3.1.5-stable-01",
+        "r_ver" : "v3.1.5-stable-03",
         "c_ver" : "400007",
         "s_ver" : "7"
     }, "stable" : {
-        "r_ver" : "v3.1.4-stable-03",
-        "c_ver" : "400004",
-        "s_ver" : "5"
+        "r_ver" : "v3.1.5-stable-03",
+        "c_ver" : "400007",
+        "s_ver" : "7"
     }
 }