8000 Update JSON data in refresh() by bluekeyes · Pull Request #611 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

Update JSON data in refresh() #611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2016
Merged

Update JSON data in refresh() #611

merged 1 commit into from
May 18, 2016

Conversation

bluekeyes
Copy link
Contributor

Otherwise, only attributes handled in _update_attributes() are refreshed and new values from the response are not available.

I ran into this with pull requests, where calling refresh() did not add the changed_files attribute that was available when fetching the PR directly. I suspect the same problem exists with other models.

Otherwise, only attributes handled in _update_attributes() are refreshed
and new values from the response are not available.
@bluekeyes
Copy link
Contributor Author

Forgot to run with Python 3 initially, but I think the test is fixed now.

@itsmemattchung itsmemattchung merged commit dc5517c into sigmavirus24:develop May 18, 2016
@itsmemattchung
Copy link
Contributor

Good catch @bluekeyes . Thanks for the PR. 🍰

@bluekeyes bluekeyes deleted the refresh-json branch May 18, 2016 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0