Skip to content

Commit b368421

Browse files
authored
Fix: small bug - forgot to update last script
2 parents 9628daf + 9b49669 commit b368421

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pyosmeta/cli/update_review_teams.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
from pyosmeta.contributors import ProcessContributors
3030
from pyosmeta.file_io import clean_export_yml, load_pickle
31+
from pyosmeta.github_api import GitHubAPI
3132
from pyosmeta.models import PersonModel
3233

3334

@@ -38,7 +39,8 @@ def get_clean_user(username: str) -> str:
3839

3940

4041
def 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
)

0 commit comments

Comments
 (0)