':return: Filtering sessions by event id and session state'

@staticmethod
def get_sessions_by_state_and_event_id(state, event_id):

    return Session.query.filter((Session.event_id == event_id)).filter((Session.state == state)).filter(Session.deleted_at.is_(None))
