def merge_session_with_post(session, post):
    for key, value in post:
        setattr(session, key, value)
    return session
Basic function to merge data into an sql object.
dataset/ETHPy150Open cd34/apex/apex/lib/db.py/merge_session_with_post