예제 #1
0
파일: admin.py 프로젝트: missundaztood/fc
def delete_member(id):
    if request.method == 'GET':
        user = users.find_by_id(id)
        return render_template('admin/delete_member.html', user=user)
    else:
        if is_yes():
            logi('delete member: uid=%d', id)
            users.delete_by_id(id)
        else:
            logi('not delete member: uid=%d', id)
        return redirect(url_for('admin.member'))
예제 #2
0
파일: test_bbs.py 프로젝트: kzkn/fc
def teardown_testdata():
    users.delete_by_id(1)
    getdb().execute("DELETE FROM BBS")