Bot usernames are excluded in the generator

This commit is contained in:
Bruno Alla 2020-08-10 18:39:15 +01:00
parent 81bc4fb73d
commit 7570ed9c5a

View File

@ -26,7 +26,7 @@ def main() -> None:
contrib_file = ContributorsJSONFile()
for username in recent_authors:
print(f"Checking if {username} should be added")
if username not in contrib_file and username not in BOT_LOGINS:
if username not in contrib_file:
user_data = gh.fetch_user_info(username)
contrib_file.add_contributor(user_data)
print(f"Added {username} to contributors")