def get_active_conferences(user):
    """
    get_active_conferences(user) -> list active conferences
    Return active conferences
    :type user: basestring
    :return: list
    """
    conferences = get_memcached(get_key("conferences"))
    list_conferences = []
    for key in conferences.keys():
        if conferences[key]["users"].keys() in user:
            list_conferences.append(
                dict(id=key,
                     title=conferences[key]["info"]["title"],
                     creator=conferences[key]["info"]["creator"],
                     creation_date=str(
                         conferences[key]["info"]["creation_date"]),
                     users=[dict(username=username, profile=get_user_profile(username)) for username in conferences[key]["users"].keys() if not username == user])
            )
    return list_conferences
dataset/ETHPy150Open treeio/treeio/treeio/core/middleware/chat.py/get_active_conferences/swapped operands of `in`