from .tool.func import * def recent_history_reset(name = 'Test'): with get_db_connect() as conn: curs = conn.cursor() if acl_check('', 'owner_auth', '', '') == 1: return re_error(conn, 3) if flask.request.method == 'POST': acl_check(tool = 'owner_auth', memo = 'history reset ' + name) curs.execute(db_change("delete from history where title = ?"), [name]) return redirect(conn, '/history/' + url_pas(name)) else: return easy_minify(conn, flask.render_template(skin_check(conn), imp = [name, wiki_set(conn), wiki_custom(conn), wiki_css(['(' + get_lang(conn, 'history_reset') + ')', 0])], data = '''
''', menu = [['history/' + url_pas(name), get_lang(conn, 'return')]] ))