Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf076dce

Browse files
committed
Fix the ratelimit_remaining property
1 parent8d40af6 commitf076dce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎github3/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def ratelimit_remaining(self):
165165
166166
"""
167167
json=self._json(self._get(self._github_url+'/rate_limit'),200)
168-
self._remaining=json.get('rate', {}).get('remaining',0)
168+
core=json.get('resources', {}).get('core', {})
169+
self._remaining=core.get('remaining',0)
169170
returnself._remaining
170171

171172
defrefresh(self,conditional=False):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp