2
0

list_not_close_topic.py 650 B

12345678910111213141516171819
  1. from .tool.func import *
  2. def list_not_close_topic_2(conn):
  3. curs = conn.cursor()
  4. div = '<ul>'
  5. curs.execute('select title, sub from rd where stop != "O" order by date desc')
  6. n_list = curs.fetchall()
  7. for data in n_list:
  8. div += '<li><a href="/topic/' + url_pas(data[0]) + '/sub/' + url_pas(data[1]) + '">' + html.escape(data[0]) + ' (' + data[1] + ')</a></li>'
  9. div += '</ul>'
  10. return easy_minify(flask.render_template(skin_check(),
  11. imp = [load_lang('open_discussion_list'), wiki_set(), custom(), other2([0, 0])],
  12. data = div,
  13. menu = [['manager', load_lang('return')]]
  14. ))