Pārlūkot izejas kodu

리다이렉트 문서는 오래된 문서에서 제외

Surplus_Up (2DU) 6 gadi atpakaļ
vecāks
revīzija
8b60fe8a4f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      route/list_old_page.py

+ 1 - 0
route/list_old_page.py

@@ -15,6 +15,7 @@ def list_old_page_2(conn):
         'select title, date from history h ' + \
         "where title not like 'user:%' and title not like 'category:%' and title not like 'file:%' and " + \
         "exists (select title from data where title = h.title) " + \
+        "and not exists (select title from back where link = h.title and type = 'redirect') " + \
         'group by title ' + \
         'order by date asc ' + \
         'limit ?, "50"' + \