File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2828
2929from pyosmeta .contributors import ProcessContributors
3030from pyosmeta .file_io import clean_export_yml , load_pickle
31+ from pyosmeta .github_api import GitHubAPI
3132from pyosmeta .models import PersonModel
3233
3334
@@ -38,7 +39,8 @@ def get_clean_user(username: str) -> str:
3839
3940
4041def main ():
41- process_contribs = ProcessContributors ([])
42+ github_api = GitHubAPI ()
43+ process_contribs = ProcessContributors (github_api , [])
4244
4345 # Two pickle files are outputs of the two other scripts
4446 # use that data to limit web calls
@@ -96,7 +98,7 @@ def main():
9698 if gh_user not in contribs .keys ():
9799 # If they aren't already in contribs, add them
98100 print ("Found a new contributor!" , gh_user )
99- new_contrib = process_contribs .get_user_info (gh_user )
101+ new_contrib = process_contribs .return_user_info (gh_user )
100102 new_contrib ["date_added" ] = datetime .now ().strftime (
101103 "%Y-%m-%d"
102104 )
You can’t perform that action at this time.
0 commit comments