Skip to content
14 changes: 12 additions & 2 deletions scripts/leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,13 @@ def generate_markdown(contributors, levels_data):
commits_display += f" · 🤝 {coauthored}"
commits_display += f" · 📦 {repos_count}"

contributor_cell = (
f'<a href="https://github.com/{login}">'
f'<img src="https://avatars.githubusercontent.com/{login}" width="32" height="32"><br>'
Comment thread
jbampton marked this conversation as resolved.
Outdated
Comment thread
jbampton marked this conversation as resolved.
Outdated
f"@{login}</a>"
)
Comment thread
jbampton marked this conversation as resolved.
Outdated
lines.append(
f"| {rank} | [@{login}](https://github.com/{login})"
f"| {rank} | {contributor_cell}"
f" | {level} | {rarity_display} | {commits_display}"
f" | {prog} | {streak_display}"
f" | {badges} | {points_display} |"
Expand Down Expand Up @@ -812,8 +817,13 @@ def generate_markdown(contributors, levels_data):
breakdown_parts.append(f"📁 {other_c}")
breakdown = " · ".join(breakdown_parts) if breakdown_parts else "—"

contributor_cell = (
f'<a href="https://github.com/{login}">'
f'<img src="https://avatars.githubusercontent.com/{login}" width="32" height="32"><br>'
Comment thread
jbampton marked this conversation as resolved.
Outdated
Comment thread
jbampton marked this conversation as resolved.
Outdated
f"@{login}</a>"
)
Comment thread
jbampton marked this conversation as resolved.
Outdated
Comment thread
jbampton marked this conversation as resolved.
Outdated
lines.append(
f"| {i} | [@{login}](https://github.com/{login})"
f"| {i} | {contributor_cell}"
f" | {first_date} | {last_date}"
f" | {days_active} | {cpd}"
f" | {breakdown} | Top {pctile}% |"
Expand Down