':return: Return all Sessions objects with the current user as a speaker'

@staticmethod
def get_sessions_of_user(upcoming_events=True, user_id=None):

    if upcoming_events:
        return Session.query.filter(Session.speakers.any((Speaker.user_id == (login.current_user.id if (not user_id) else int(user_id))))).filter((Session.starts_at >= datetime.datetime.now())).filter(Session.deleted_at.is_(None))
    else:
        return Session.query.filter(Session.speakers.any((Speaker.user_id == (login.current_user.id if (not user_id) else int(user_id))))).filter((Session.starts_at < datetime.datetime.now())).filter(Session.deleted_at.is_(None))
