def test_edit_section():
    section_data = {
        "sec_id": "8c064d9a-f689-4ab1-bbed-1652623aa1c7",
        "sec_text": "new section 1a",
        "sec_date_in": "2019-01-01"
    }
    r = BLL_Sections.update_section("8c064d9a-f689-4ab1-bbed-1652623aa1c7",
                                    section_data)
    print(r)
def save_section():
    sec_id = request.form.get('sec_id')
    sec_text = request.form.get('sec_text')
    sec_editor = request.form.get('editor')
    sec_text = request.form.get('aaa')
    sec_date_in = request.form.get('sec_date_in')
    sec_data = {'sec_id': sec_id, 'sec_text': sec_text, 'sec_date_in': sec_date_in}

    msg_dict = BLL_Sections.update_section(sec_id,sec_data)
    # section_data = {"sec_id": section.sec_id, "sec_text":section.sec_text}

    return msg_dict