浏览代码

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

Surplus_Up (2DU) 6 年之前
父节点
当前提交
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"' + \