Ver código fonte

fix category

잉여개발기 (SPDV) 3 anos atrás
pai
commit
27ab9dfff3
2 arquivos alterados com 13 adições e 13 exclusões
  1. 12 12
      route/view_read.py
  2. 1 1
      version.json

+ 12 - 12
route/view_read.py

@@ -8,7 +8,7 @@ def view_read(name = 'Test', doc_rev = '', doc_from = '', do_type = ''):
         menu = []
 
         user_doc = ''
-        category_doc = ''
+        category_total = ''
         file_data = ''
 
         ip = ip_check()
@@ -49,23 +49,23 @@ def view_read(name = 'Test', doc_rev = '', doc_from = '', do_type = ''):
 
                     count_category += 1
 
-            if category_doc != '':
-                category_doc = '' + \
-                    '<h2 id="cate_normal">' + load_lang('category_title') + '</h2>' + \
-                    '<ul class="opennamu_ul">' + \
-                        '<li>' + load_lang('all') + ' : ' + str(count_category) + '</li>' + \
-                        category_doc + \
-                    '</ul>' + \
-                ''
-
             if category_sub != '':
-                category_doc += '' + \
+                category_total += '' + \
                     '<h2 id="cate_under">' + load_lang('under_category') + '</h2>' + \
                     '<ul class="opennamu_ul">' + \
                         '<li>' + load_lang('all') + ' : ' + str(count_sub_category) + '</li>' + \
                         category_sub + \
                     '</ul>' + \
                 ''
+
+            if category_doc != '':
+                category_total += '' + \
+                    '<h2 id="cate_normal">' + load_lang('category_title') + '</h2>' + \
+                    '<ul class="opennamu_ul">' + \
+                        '<li>' + load_lang('all') + ' : ' + str(count_category) + '</li>' + \
+                        category_doc + \
+                    '</ul>' + \
+                ''
         elif re.search(r"^user:([^/]*)", name):
             name_view = name
 
@@ -232,7 +232,7 @@ def view_read(name = 'Test', doc_rev = '', doc_from = '', do_type = ''):
             r_date = curs.fetchall()
             r_date = r_date[0][0] if r_date else 0
 
-        div = file_data + user_doc + end_data + category_doc
+        div = file_data + user_doc + end_data + category_total
 
         if num != '':
             curs.execute(db_change('select data from other where name = "phrase_old_page_warring"'))

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.6-RC2-dev136",
+        "r_ver" : "v3.4.6-RC2-dev137",
         "c_ver" : "3500359",
         "s_ver" : "3500111"
     }