@app.route('/recent/discuss')
async def wiki_recent_discuss(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_discuss_table">\n            <tr class="wiki_discuss_table_top">\n                <td class="wiki_table_discuss_top">토론</td>\n                <td class="wiki_table_discuss_top">문서명</td>\n                <td class="wiki_table_discuss_top">시간</td>\n            </tr>\n    '
    data_get = (await db.execute('select doc, title, id, date from dis where state = ? order by date desc limit 30', ['normal']))
    data_get = (await data_get.fetchall())
    for discuss_data in data_get:
        if data_get:
            data += (((((((((((('\n                <tr class="wiki_discuss_table_middle">\n                    <td class="wiki_table_discuss"><a href="/discuss/' + discuss_data[0]) + '/') + discuss_data[2]) + '">') + discuss_data[1]) + '</a></td>\n                    <td class="wiki_table_discuss"><a href="/w/') + discuss_data[0]) + '">') + discuss_data[0]) + '</a></td>\n                    <td class="wiki_table_discuss">') + discuss_data[3]) + '</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/discuss')
async def wiki_recent_discuss(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_discuss_table">\n            <tr class="wiki_discuss_table_top">\n                <td class="wiki_table_discuss_top">토론</td>\n                <td class="wiki_table_discuss_top">문서명</td>\n                <td class="wiki_table_discuss_top">시간</td>\n            </tr>\n    '
    data_get = (await db.execute('select doc, title, id, date from dis where state = ? order by date desc limit 30', ['normal']))
    data_get = (await data_get.fetchall())
    for discuss_data in data_get:
        if data_get:
            data += (((((((((((('\n                <tr class="wiki_discuss_table_middle">\n                    <td class="wiki_table_discuss"><a href="/discuss/' + discuss_data[0]) + '/') + discuss_data[2]) + '">') + discuss_data[1]) + '</a></td>\n                    <td class="wiki_table_discuss"><a href="/w/') + discuss_data[0]) + '">') + discuss_data[0]) + '</a></td>\n                    <td class="wiki_table_discuss">') + discuss_data[3]) + '</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)