|
@@ -12,9 +12,10 @@ def list_old_page_2(conn):
|
|
|
div = '<ul>'
|
|
div = '<ul>'
|
|
|
|
|
|
|
|
curs.execute('' + \
|
|
curs.execute('' + \
|
|
|
- 'select title, date from history ' + \
|
|
|
|
|
- "where title not like 'user:%' and title not like 'category:%' and title not like 'file:%' " + \
|
|
|
|
|
- 'group by title '
|
|
|
|
|
|
|
+ '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) " + \
|
|
|
|
|
+ 'group by title ' + \
|
|
|
'order by date asc ' + \
|
|
'order by date asc ' + \
|
|
|
'limit ?, "50"' + \
|
|
'limit ?, "50"' + \
|
|
|
'', [str(sql_num)])
|
|
'', [str(sql_num)])
|