Skip to content

Commit 5f4e9ce

Browse files
committed
Fix avatars
1 parent a7333eb commit 5f4e9ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/src/routes/contests/winners.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2>{{contest.name}} Winners</h2>
1717
{{#each sorted as score, index}}
1818
<tr>
1919
<td>{{index + 1}}</td>
20-
<td><a class="entry-link" href="/entry/{{score.id}}"><GithubAvatar id="{{score.user}}" size="{{index < 3 ? 50 : 30}}" rounded/> {{score.name}}</a></td>
20+
<td><a class="entry-link" href="/entry/{{score.id}}"><GithubAvatar id="{{score.github_id}}" size="{{index < 3 ? 50 : 30}}" rounded/> {{score.name}}</a></td>
2121
<td>{{score.score}}</td>
2222
</tr>
2323
{{/each}}

server/src/cache/contest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export function getContestScores(contest: number): Promise<any> {
1717
score.name = await getUserName(score.github_id);
1818
score.score = +score.score.toFixed(1);
1919
score.id = hash(<number>score.id);
20+
delete score.user;
2021
return score;
2122
})))
2223
.then(scores => {

0 commit comments

Comments
 (0)