def notice_create(values): notice = Notice() notice.update(values) session.add(notice) session.commit() return notice
def channel_create(values): channel = Channel() channel.update(values) session.add(channel) session.commit() return channel
def obj_commit(obj): session.add(obj) session.commit()