Skip to content

Commit

Permalink
Fixes: PyGithub#1671
Browse files Browse the repository at this point in the history
  • Loading branch information
sshekdar-VMware committed Jul 21, 2021
1 parent 83d6e07 commit d7f1193
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions github/AuthenticatedUser.py
Expand Up @@ -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:
Expand Down

0 comments on commit d7f1193

Please sign in to comment.