|
|
@@ -5,10 +5,11 @@ def list_not_close_topic_2(conn):
|
|
|
|
|
|
div = '<ul>'
|
|
|
|
|
|
- curs.execute(db_change('select title, sub from rd where stop != "O" order by date desc'))
|
|
|
+ curs.execute(db_change('select title, sub, date from rd where stop != "O" order by date desc'))
|
|
|
n_list = curs.fetchall()
|
|
|
for data in n_list:
|
|
|
- div += '<li><a href="/topic/' + url_pas(data[0]) + '/sub/' + url_pas(data[1]) + '">' + html.escape(data[0]) + ' (' + data[1] + ')</a></li>'
|
|
|
+ curs.execute(db_change("select code from topic where id = '1' and title = ? and sub = ?"), [data[0], data[1]])
|
|
|
+ div += '<li><a href="/thread/' + url_pas(curs.fetchall()[0][0]) + '">' + html.escape(data[0]) + '</a> (' + data[1] + ') | ' + data[2] + '</li>'
|
|
|
|
|
|
div += '</ul>'
|
|
|
|