2
0
Эх сурвалжийг харах

일부 기능 문서 3만 이상에서 작동 안하게

Surplus_Up (2DU) 6 жил өмнө
parent
commit
21d904256e

+ 3 - 2
language/en-US.json

@@ -328,7 +328,7 @@
             "file_extension_error" : "Only JPG, GIF, JPEG, PNG, WEBP is allowed.",
             "edit_record_error" : "Edit reason can not be more than 500 characters.",
             "same_file_error" : "A file with the same name exists.",
-            "file_capacity_error" : "Maximum file capacity (MB) :",
+            "file_capacity_error" : "Maximum file capacity (MB) : ",
             "decument_exist_error" : "The document with that title already exists.",
             "password_diffrent_error" : "Reconfirm password and input password are different.",
             "edit_filter_error" : "Censored by edit filter.",
@@ -337,5 +337,6 @@
             "email_error" : "No one has this email.",
             "regex_error" : "There is an error in the regular expression.",
             "decument_404_error" : "This document does not exist.",
-            "fast_edit_error" : "You can edit another document after this period(Second(s)): "
+            "fast_edit_error" : "You can edit another document after this period (Second(s)) : ",
+            "too_many_dec_error" : "This feature is not supported because there are too many documents."
 }

+ 3 - 2
language/ko-KR.json

@@ -84,7 +84,7 @@
     "file_name_error": "파일 이름에는 알파벳, 한글, 공백, 밑줄 및 빼기 기호만 사용할 수 있습니다.",
     "pass": "넘기기",
     "recaptcha_error": "'로봇이 아닙니다'를 통해 reCAPTCHA를 통과하세요.",
-    "file_capacity_error": "최대 파일 크기 (MB) :",
+    "file_capacity_error": "최대 파일 크기 (MB) : ",
     "setting": "설정",
     "end": "끝",
     "error": "오류",
@@ -314,5 +314,6 @@
     "fast_edit_error": "편집 속도가 너무 빠릅니다. 제한 (초) : ",
     "main_acl_setting": "기본 ACL 설정",
     "edit_req_acl": "편집 요청 ACL",
-    "history_add" : "역사 추가"
+    "history_add" : "역사 추가",
+    "too_many_dec_error" : "문서 수가 너무 많아서 지원하지 않는 기능 입니다."
 }

+ 1 - 1
route/api_search.py

@@ -17,7 +17,7 @@ def api_search_2(conn, name):
         page = 0
 
     curs.execute(db_change('select data from other where name = "count_all_title"'))
-    if int(curs.fetchall()[0][0]) < 10000:
+    if int(curs.fetchall()[0][0]) < 30000:
         curs.execute(db_change("" + \
             "select distinct title, case when title like ? then 'title' else 'data' " + \
             "end from data where title like ? or data like ? order by case " + \

+ 4 - 0
route/list_old_page.py

@@ -9,6 +9,10 @@ def list_old_page_2(conn):
     else:
         sql_num = 0
 
+    curs.execute(db_change('select data from other where name = "count_all_title"'))
+    if int(curs.fetchall()[0][0]) < 30000:
+        return re_error('/error/25')
+
     div = '<ul>'
 
     curs.execute(db_change('' + \

+ 4 - 0
route/list_please.py

@@ -9,6 +9,10 @@ def list_please_2(conn):
     else:
         sql_num = 0
 
+    curs.execute(db_change('select data from other where name = "count_all_title"'))
+    if int(curs.fetchall()[0][0]) < 30000:
+        return re_error('/error/25')
+
     div = '<ul>'
 
     curs.execute(db_change("select distinct title from back where type = 'no' order by title asc limit ?, 50"), [sql_num])

+ 1 - 1
route/list_title_index.py

@@ -30,7 +30,7 @@ def list_title_index_2(conn):
         count_end = []
 
         curs.execute(db_change('select data from other where name = "count_all_title"'))
-        if int(curs.fetchall()[0][0]) < 10000:
+        if int(curs.fetchall()[0][0]) < 30000:
             curs.execute(db_change("select count(title) from data"))
             count = curs.fetchall()
             if count:

+ 1 - 1
route/search_deep.py

@@ -33,7 +33,7 @@ def search_deep_2(conn, name):
             <ul>
             '''
     curs.execute(db_change('select data from other where name = "count_all_title"'))
-    if int(curs.fetchall()[0][0]) < 10000:
+    if int(curs.fetchall()[0][0]) < 30000:
         curs.execute(db_change("" + \
             "select distinct title, case " + \
             "when title like ? then 'title' else 'data' end from data " + \

+ 3 - 1
route/tool/func.py

@@ -1122,7 +1122,7 @@ def re_error(data):
             elif num == 16:
                 data = load_lang('same_file_error')
             elif num == 17:
-                data = load_lang('file_capacity_error') + ' ' + wiki_set(3)
+                data = load_lang('file_capacity_error') + wiki_set(3)
             elif num == 19:
                 data = load_lang('decument_exist_error')
             elif num == 20:
@@ -1137,6 +1137,8 @@ def re_error(data):
                 curs.execute(db_change("select data from other where name = 'slow_edit'"))
                 slow_data = curs.fetchall()
                 data = load_lang('fast_edit_error') + slow_data[0][0]
+            elif num == 25:
+                data = load_lang('too_many_dec_error')
             else:
                 data = '???'
 

+ 3 - 0
route/tool/init.py

@@ -43,6 +43,9 @@ def init(key):
     if env_dict[key] != None:
         return env_dict[key]
     else:
+        if key == 'markup':
+            return server_set_var[key]['default']
+
         while 1:
             if server_set_var[key]['require'] == 'select':
                 list_ = '[' + ', '.join(server_set_var[key]['list']) + ']'

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.5-master-44",
+        "r_ver" : "v3.1.5-stable-01",
         "c_ver" : "400007",
         "s_ver" : "7"
     }, "stable" : {