@login_required
def index(**kwargs):
    email_md5 = hashlib.md5(current_user.email.lower()).hexdigest()
    gravatar_url = email_md5 % "https://www.gravatar.com/avatar/%s?s=40"

    user = {
        'gravatar_url': gravatar_url,
        'id': current_user.id,
        'name': current_user.name,
        'email': current_user.email,
        'groups': current_user.groups,
        'permissions': current_user.permissions
    }

    client_config = {
        'newVersionAvailable': get_latest_version(),
        'version': __version__
    }

    client_config.update(settings.COMMON_CLIENT_CONFIG)

    headers = {
        'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate'
    }

    response = render_template("index.html",
                               user=json.dumps(user),
                               org_slug=current_org.slug,
                               client_config=json.dumps(client_config))

    return response, 200, headers
dataset/ETHPy150Open getredash/redash/redash/handlers/static.py/index/swapped operands of `%`