pyca/utils.py
def update_event_status(event, status):
    '''Update the status of a particular event in the database.
    '''
    dbs = db.get_session()
    dbs.query(db.RecordedEvent).filter(db.RecordedEvent.start == event.start)\
                               .update({'status': status})
    event.status = status
    dbs.commit()
def update_event_status(event, status):
    '''Update the status of a particular event in the database.
    '''
    dbs = db.get_session()
    dbs.query(db.RecordedEvent).filter(db.RecordedEvent.start == event.start)\
                               .update({'status': status})
    event.status = status
    dbs.commit()
def update_event_status ( event , status ) : dbs = db . get_session ( ) dbs . query ( db . RecordedEvent ) . filter ( db . RecordedEvent . start == event . start ) . update ( { 'status' : status } ) event . status = status dbs . commit ( )
Update the status of a particular event in the database.
Update the status of a particular event in the database .