@@ -119,6 +119,7 @@ def get_project_translators(self, project_name: str) -> dict:
119119 "/medium/" , "/large/"
120120 ),
121121 }
122+ # Avoid duplicates
122123 if user_data not in results [lang ]:
123124 results [lang ].append (user_data )
124125 offset += limit
@@ -149,7 +150,7 @@ def generate_card(
149150 )
150151
151152
152- def generate_contributors_md_file (data : dict ) -> None :
153+ def generate_contributors_md_file (data : dict , skip ) -> None :
153154 script_path = Path (__file__ ).resolve ()
154155 parent_dir = script_path .parent .parent / "content"
155156 content = """---
@@ -171,6 +172,10 @@ def generate_contributors_md_file(data: dict) -> None:
171172 all_translators .append (contributor )
172173
173174 for contributor in all_translators :
175+ # Skip bot users
176+ if contributor ["username" ] in skip :
177+ continue
178+
174179 content += "\n \n "
175180 content += generate_card (
176181 name = contributor ["name" ], img_link = contributor ["img_link" ]
@@ -250,7 +255,9 @@ def main() -> None:
250255 "project_id" : project_id ,
251256 }
252257 generate_dashboard_md_file (data )
253- generate_contributors_md_file (data )
258+ generate_contributors_md_file (
259+ data , skip = ["scientific-python" , "scientificpythontranslations" ]
260+ )
254261 except Exception as e :
255262 print (f"Error: { e } " )
256263 traceback .print_exc ()
0 commit comments