from app import db


def session_add(instance):
    db.session.add(instance)
    db.session.commit()


def session_delete(instance):
    db.session.delete(instance)
    db.session.commit()


def validate_data(instance, data):
    errors = instance.validate(data)
    return errors

f10c779fae66a6c3a0c7fe1e37cd130e1c7bbf3e
<mask token>

<mask token>


def validate_data(instance, data):
    errors = instance.validate(data)
    return errors

<mask token>


def session_delete(instance):
    db.session.delete(instance)
    db.session.commit()


def validate_data(instance, data):
    errors = instance.validate(data)
    return errors

<mask token>


def session_add(instance):
    db.session.add(instance)
    db.session.commit()


def session_delete(instance):
    db.session.delete(instance)
    db.session.commit()


def validate_data(instance, data):
    errors = instance.validate(data)
    return errors

from app import db


def session_add(instance):
    db.session.add(instance)
    db.session.commit()


def session_delete(instance):
    db.session.delete(instance)
    db.session.commit()


def validate_data(instance, data):
    errors = instance.validate(data)
    return errors
