Skip to content

Commit 449b7c1

Browse files
lwasserCAM-Gerlach
andauthored
Fix: clean up script to parse through dic keys and items
Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent a4444f6 commit 449b7c1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/parse-contributors.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@
3131
)
3232

3333
# Force gh username keys to be lowercase
34-
for key in all_contribs_dict:
35-
all_contribs_dict[key]["github_username"] = all_contribs_dict[key][
36-
"github_username"
37-
].lower()
38-
print(all_contribs_dict[key]["github_username"])
34+
for key, user_dict in all_contribs_dict.items():
35+
user_dict["github_username"] = user_dict["github_username"].lower()
36+
print(user_dict["github_username"])
3937

4038
gh_data = processContribs.get_gh_data(all_contribs_dict)
4139

0 commit comments

Comments
 (0)