mirror of
https://github.com/EvanLi/Github-Ranking.git
synced 2026-11-04 15:00:06 +00:00
fix: change stargazers to stargazerCount
This commit is contained in:
1 parent
f614edf71a
commit
93645cc104
1 file changed
+3
-4
+3
-4
@@ -73,9 +73,7 @@ class ProcessorGQL(object):
|
||||
name
|
||||
url
|
||||
forkCount
|
||||
stargazers {
|
||||
totalCount
|
||||
}
|
||||
stargazerCount
|
||||
owner {
|
||||
login
|
||||
}
|
||||
@@ -109,7 +107,7 @@ class ProcessorGQL(object):
|
||||
repo_data = repo['node']
|
||||
res.append({
|
||||
'name': repo_data['name'],
|
||||
'stargazers_count': repo_data['stargazers']['totalCount'],
|
||||
'stargazers_count': repo_data['stargazerCount'],
|
||||
'forks_count': repo_data['forkCount'],
|
||||
'language': repo_data['primaryLanguage']['name'] if repo_data['primaryLanguage'] is not None else None,
|
||||
'html_url': repo_data['url'],
|
||||
@@ -259,3 +257,4 @@ if __name__ == "__main__":
|
||||
t1 = datetime.now()
|
||||
run_by_gql()
|
||||
print("Total time: {}s".format((datetime.now() - t1).total_seconds()))
|
||||
|
||||
Reference in new issue
Block a user