Просмотр исходного кода

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

Surplus_Up (2DU) 6 лет назад
Родитель
Сommit
8b60fe8a4f
1 измененных файлов с 1 добавлено и 0 удалено
  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"' + \