from .tool.func import * def topic_tool_2(conn, topic_num): curs = conn.cursor() data = '' topic_num = str(topic_num) curs.execute(db_change("select stop, agree from rd where code = ?"), [topic_num]) close_data = curs.fetchall() if close_data: if close_data[0][0] == 'S': t_state = 'stop' elif close_data[0][0] == 'O': t_state = 'close' else: t_state = 'normal' else: t_state = 'normal' curs.execute(db_change("select acl from rd where code = ?"), [topic_num]) topic_acl_get = curs.fetchall() if admin_check(3) == 1: data = '''