@app.route('/recent/changes')
async def wiki_recent_changes(request):
    async with aiofiles.open('data/setting.json', encoding='utf8') as f:
        setting_data = json.loads((await f.read()))
        db = (await aiosqlite.connect((setting_data['db_name'] + '.db')))
    data = '\n        <table class="wiki_changes_table">\n            <tr class="wiki_changes_table_top">\n                <td class="wiki_table_changes_top">문서</td>\n                <td class="wiki_table_changes_top">편집자</td>\n                <td class="wiki_table_changes_top">시간</td>\n            </tr>\n    '
    data_get = (await db.execute('select id, title, date, ip, send, leng from doc_his order by id + 0 desc limit 30'))
    data_get = (await data_get.fetchall())
    for history_data in data_get:
        if data_get:
            data += (((((((((((('\n                <tr class="wiki_changes_table_middle">\n                    <td class="wiki_table_changes"><a href="/w/' + history_data[1]) + '">') + history_data[1]) + '</a> (') + history_data[5]) + ')</td>\n                    <td class="wiki_table_changes">') + (await user_link(history_data[3]))) + '</td>\n                    <td class="wiki_table_changes">') + history_data[2]) + '\n                </tr>\n                <tr>\n                    <td colspan="3" class="wiki_table_changes">') + history_data[4]) + '</td>\n                </tr>\n            ')
    data += '</table>'
    return jinja.render('index.html', request, wiki_set=(await wiki_set(request, 0)), data=data, title='최근 변경', sub=0, menu=0)
@app.route('/recent/changes')
async def wiki_recent_changes(request):
    async with aiofiles.open('data/setting.json', encoding='utf8') as f:
        setting_data = json.loads((await f.read()))
        db = (await aiosqlite.connect((setting_data['db_name'] + '.db')))
    data = '\n        <table class="wiki_changes_table">\n            <tr class="wiki_changes_table_top">\n                <td class="wiki_table_changes_top">문서</td>\n                <td class="wiki_table_changes_top">편집자</td>\n                <td class="wiki_table_changes_top">시간</td>\n            </tr>\n    '
    data_get = (await db.execute('select id, title, date, ip, send, leng from doc_his order by id + 0 desc limit 30'))
    data_get = (await data_get.fetchall())
    for history_data in data_get:
        if data_get:
            data += (((((((((((('\n                <tr class="wiki_changes_table_middle">\n                    <td class="wiki_table_changes"><a href="/w/' + history_data[1]) + '">') + history_data[1]) + '</a> (') + history_data[5]) + ')</td>\n                    <td class="wiki_table_changes">') + (await user_link(history_data[3]))) + '</td>\n                    <td class="wiki_table_changes">') + history_data[2]) + '\n                </tr>\n                <tr>\n                    <td colspan="3" class="wiki_table_changes">') + history_data[4]) + '</td>\n                </tr>\n            ')
    data += '</table>'
    return jinja.render('index.html', request, wiki_set=(await wiki_set(request, 0)), data=data, title='최근 변경', sub=0, menu=0)