def get_members_only()

in chat-client/main.py [0:0]


def get_members_only(category_tag, category_map):
    """Gets items in a category, excluding the category tag itself."""
    full_list = category_map.get(category_tag, [])
    # Using str() ensures comparison works if lists somehow contain non-strings
    # This filters out the tag itself from the list of members.
    return {str(item) for item in full_list if str(item) != str(category_tag)}