mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
The parameters 'all' and 'participating' for AuthenticatedUser.get_notifications() should be lower case strings, not textual forms of a boolean. Fixes: #1671
This commit is contained in:
@@ -973,9 +973,11 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
params = dict()
|
||||
if all is not github.GithubObject.NotSet:
|
||||
params["all"] = all
|
||||
# convert True, False to true, false for api parameters
|
||||
params["all"] = "true" if all else "false"
|
||||
if participating is not github.GithubObject.NotSet:
|
||||
params["participating"] = participating
|
||||
# convert True, False to true, false for api parameters
|
||||
params["participating"] = "true" if participating else "false"
|
||||
if since is not github.GithubObject.NotSet:
|
||||
params["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
if before is not github.GithubObject.NotSet:
|
||||
|
||||
Reference in New Issue
Block a user