Browse Source

유저 로그에 사용자 수 삭제

Surplus_Up (2DU) 7 years ago
parent
commit
00bc24b39e
3 changed files with 21 additions and 32 deletions
  1. 14 14
      route/block_log.py
  2. 7 7
      route/user_ban.py
  3. 0 11
      route/user_log.py

+ 14 - 14
route/block_log.py

@@ -9,23 +9,23 @@ def block_log_2(conn, name, tool):
     else:
     else:
         sql_num = 0
         sql_num = 0
     
     
-    div =   '''
-            <table id="main_table_set">
-                <tbody>
-                    <tr>
-                        <td id="main_table_width">''' + load_lang('blocked') + '''</td>
-                        <td id="main_table_width">''' + load_lang('admin') + '''</td>
-                        <td id="main_table_width">''' + load_lang('period') + '''</td>
-                    </tr>
-            '''
+    div = '''
+        <table id="main_table_set">
+            <tbody>
+                <tr>
+                    <td id="main_table_width">''' + load_lang('blocked') + '''</td>
+                    <td id="main_table_width">''' + load_lang('admin') + '''</td>
+                    <td id="main_table_width">''' + load_lang('period') + '''</td>
+                </tr>
+    '''
     
     
     data_list = ''
     data_list = ''
     
     
     if not name:
     if not name:
-        div =   '''
-                <a href="/manager/11">(''' + load_lang('blocked') + ''')</a> <a href="/manager/12">(''' + load_lang('admin') + ''')</a>
-                <hr class=\"main_hr\">
-                ''' + div
+        div = '''
+            <a href="/manager/11">(''' + load_lang('blocked') + ''')</a> <a href="/manager/12">(''' + load_lang('admin') + ''')</a>
+            <hr class=\"main_hr\">
+        ''' + div
         
         
         sub = 0
         sub = 0
         menu = 0
         menu = 0
@@ -62,7 +62,7 @@ def block_log_2(conn, name, tool):
         else:
         else:
             end = load_lang('limitless') + ''
             end = load_lang('limitless') + ''
             
             
-        div +=  '''
+        div += '''
             <tr>
             <tr>
                 <td>''' + ip + '''</td>
                 <td>''' + ip + '''</td>
                 <td>''' + ip_pas(data[2]) + '''</td>
                 <td>''' + ip_pas(data[2]) + '''</td>

+ 7 - 7
route/user_ban.py

@@ -62,13 +62,13 @@ def user_ban_2(conn, name):
                 plus = ''
                 plus = ''
 
 
             data =  '''
             data =  '''
-                    <input placeholder="''' + load_lang('second') + '''" name="second" type="text">
-                    <hr class=\"main_hr\">
-                    <input type="checkbox" name="limitless"> ''' + load_lang('limitless') + '''
-                    <hr class=\"main_hr\">
-                    <input placeholder="''' + load_lang('why') + '''" name="why" type="text">
-                    <hr class=\"main_hr\">
-                    ''' + plus
+                <input placeholder="''' + load_lang('second') + '''" name="second" type="text">
+                <hr class=\"main_hr\">
+                <input type="checkbox" name="limitless"> ''' + load_lang('limitless') + '''
+                <hr class=\"main_hr\">
+                <input placeholder="''' + load_lang('why') + '''" name="why" type="text">
+                <hr class=\"main_hr\">
+            ''' + plus
 
 
         return easy_minify(flask.render_template(skin_check(), 
         return easy_minify(flask.render_template(skin_check(), 
             imp = [name, wiki_set(), custom(), other2([' (' + now + ')', 0])],
             imp = [name, wiki_set(), custom(), other2([' (' + now + ')', 0])],

+ 0 - 11
route/user_log.py

@@ -33,19 +33,8 @@ def user_log_2(conn):
         list_data += '</li>'
         list_data += '</li>'
 
 
     if num == 1:
     if num == 1:
-        curs.execute("select count(id) from user")
-        user_count = curs.fetchall()
-        if user_count:
-            count = user_count[0][0]
-        else:
-            count = 0
-
         list_data +=    '''
         list_data +=    '''
             </ul>
             </ul>
-            <hr class=\"main_hr\">
-            <ul>
-                <li>all : ''' + str(count) + '''</li>
-            </ul>
         '''
         '''
 
 
     list_data += next_fix('/user_log?num=', num, user_list)
     list_data += next_fix('/user_log?num=', num, user_list)