from .tool.func import * def other_2(conn, r_ver): curs = conn.cursor() n_ver = '' data = None try: if flask.request.host != 'namu.ml': data = urllib.request.urlopen('https://namu.ml/api/version') except: pass if data and data.getcode() == 200: try: json_data = json.loads(data.read().decode()) if 'version' in json_data: n_ver = json_data['version'] except: pass if n_ver != '': n_ver = '
  • ' + load_lang('lastest') + ' : ' + n_ver + '
  • ' return easy_minify(flask.render_template(skin_check(), imp = [load_lang('other_tool'), wiki_set(), custom(), other2([0, 0])], data = '''

    ''' + load_lang('record') + '''


    ''' + load_lang('list') + '''


    ''' + load_lang('other') + '''


    ''' + load_lang('admin') + '''


    ''' + load_lang('version') + '''

    ''', menu = 0 ))