Selaa lähdekoodia

코드 수정

2DU 9 vuotta sitten
vanhempi
sitoutus
2ae18fdf32
2 muutettua tiedostoa jossa 2 lisäystä ja 5 poistoa
  1. 1 3
      app.py
  2. 1 2
      templates/index.html

+ 1 - 3
app.py

@@ -1577,9 +1577,7 @@ def titleindex():
                 break
             div = div + '<li><a href="/w/' + parse.quote(rows[i]['title']).replace('/','%2F') + '">' + rows[i]['title'] + '</a></li>'
             i = i + 1
-        curs.execute("select TABLE_ROWS from information_schema.tables where table_name = 'data';")
-        row = curs.fetchall()
-        return render_template('index.html', logo = data['name'], rows = div + '<br><span>이 위키에는 총 ' + str(row[0]['TABLE_ROWS']) + '개의 문서가 있습니다.</span>', tn = 4, title = '모든 문서')
+        return render_template('index.html', logo = data['name'], rows = div + '<br><span>이 위키에는 총 ' + (i + 1) + '개의 문서가 있습니다.</span>', tn = 4, title = '모든 문서')
     else:
         return render_template('index.html', logo = data['name'], rows = '', tn = 4, title = '모든 문서')
 

+ 1 - 2
templates/index.html

@@ -328,12 +328,11 @@
                 <li>대규모도 편하게 접근되게</li>
                 <h2>1.4 (진행중)</h2>
                 <li>사용자 문서 (완료)</li>
-                <li>파일 기능 개편</li>
+                <li>사문 접근성</li>
                 <li>검색 기능 수정 (완료)</li>
                 <li>상위 문서 바로가기 (완료)</li>
                 <li>유저 기록 보기 (완료)</li>
                 <h2>1.5</h2>
-                <li>사문 접근성</li>
                 <li>디자인 변경</li>
                 <li>관리자 기능 접근성</li>
                 <li>파일 문서 생성</li>