from .tool.func import * def recent_history_tool(name = 'Test', rev = 1): with get_db_connect() as conn: curs = conn.cursor() num = str(rev) data = '' + \ '

' + load_lang('tool') + '

' + \ '' if admin_check(6) == 1: data += '

' + load_lang('admin') + '

' data += '' if admin_check() == 1: data += '

' + load_lang('owner') + '

' data += '' return easy_minify(flask.render_template(skin_check(), imp = [name, wiki_set(), wiki_custom(), wiki_css(['(r' + num + ')', 0])], data = data, menu = [['history/' + url_pas(name), load_lang('return')]] ))