mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: contest_export_ghost: add star to team name if team was unranked
This commit is contained in:
1 file changed
+4
-1
@@ -375,7 +375,10 @@ export class ContestScoreboardHandler extends ContestDetailBaseHandler {
|
||||
`@submissions ${submissions.length}`,
|
||||
].concat(
|
||||
tdoc.pids.map((i, idx) => `@p ${pid(idx)},${escape(pdict[i]?.title || 'Unknown Problem')},20,0`),
|
||||
teams.map((i, idx) => `@t ${idx + 1},0,1,${escape(udict[i.uid].school || unknownSchool)}-${escape(udict[i.uid].uname)}`),
|
||||
teams.map((i, idx) => {
|
||||
const teamName = `${i.rank ? '*' : ''}${escape(udict[i.uid].school || unknownSchool)}-${escape(udict[i.uid].uname)}`;
|
||||
return `@t ${idx + 1},0,1,${teamName}`;
|
||||
}),
|
||||
submissions,
|
||||
);
|
||||
this.binary(res.join('\n'), `${this.tdoc.title}.ghost`);
|
||||
|
||||
Reference in new issue
Block a user