Skip to content

Commit

Permalink
Ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Oct 17, 2024
1 parent 121ae4d commit b282129
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contributors/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ def get_contributor_table(

if not added_to_org:
organization_contributors["Independent"].append(row)


ordered_orgs = [org for org in (*show_organizations_list, "Independent") if org in organization_contributors]
tables = OrderedDict(
[
(org, headers + "".join(organization_contributors[org]))
for org in set((*show_organizations_list, "Independent")).intersection(organization_contributors.keys())
for org in ordered_orgs
]
)
print(tables)

# table += row
return tables, total_contributions

0 comments on commit b282129

Please sign in to comment.