def session(request):
    """Load the database session for a given aiohttp request

    Internally, it just returns the value that was given as cleanup context by
    func:`krake.api.app.db_session`.

    Args:
        request (aiohttp.web.Request): HTTP request

    Returns:
        krake.database.Session: Database session for the given request
    """
    return request.app["db"]