diff --git a/github/AuthenticatedUser.py b/github/AuthenticatedUser.py index 9f9993d56a..efc331d2b6 100644 --- a/github/AuthenticatedUser.py +++ b/github/AuthenticatedUser.py @@ -973,9 +973,11 @@ def get_notifications( params = dict() if all is not github.GithubObject.NotSet: - params["all"] = all + # convert True, False to true, false for api parameters + params["all"] = str(all).lower() if isinstance(all, bool) else all if participating is not github.GithubObject.NotSet: - params["participating"] = participating + # convert True, False to true, false for api parameters + params["participating"] = str(participating).lower() if isinstance(participating, bool) else participating if since is not github.GithubObject.NotSet: params["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ") if before is not github.GithubObject.NotSet: