def get_sms_autocomplete_context(request, domain):
    """A helper view for sms autocomplete"""
    phone_users = CouchUser.view("users/phone_users_by_domain",
        startkey=[domain], endkey=[domain, {}], include_docs=True
    )
    groups = Group.by_domain(domain)

    contacts = ["[send to all]"]
    contacts.extend([group.name % '%s [group]' for group in groups])
    user_id = None
    for user in phone_users:
        if user._id == user_id:
            continue
        contacts.append(user.username)
        user_id = user._id
    return {"sms_contacts": contacts}
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/views.py/get_sms_autocomplete_context/swapped operands of `%`