scoreboard-xcpcio: use getAlphabeticId

This commit is contained in:
undefined committed 2025-10-13 13:31:37 +08:00
1 parent 564ff1b02d
commit 83f74196ee
1 file changed
+2 -2
+2 -2
View File
@@ -1,6 +1,6 @@
import path from 'path';
import {
ContestModel, Context, fs, ObjectId, PERM, Schema, STATUS, Types, UserModel,
ContestModel, Context, fs, getAlphabeticId, ObjectId, PERM, Schema, STATUS, Types, UserModel,
} from 'hydrooj';
const file = fs.readFileSync(path.join(__dirname, 'public/assets/board.html'), 'utf8');
@@ -64,7 +64,7 @@ export async function apply(ctx: Context) {
frozen_time: tdoc.lockAt ? Math.floor((tdoc.endAt.getTime() - tdoc.lockAt.getTime()) / 1000) : 0,
penalty: 1200,
problem_quantity: tdoc.pids.length,
problem_id: tdoc.pids.map((i, idx) => String.fromCharCode(65 + idx)),
problem_id: tdoc.pids.map((i, idx) => getAlphabeticId(idx)),
group: {
official: '正式队伍',
unofficial: '打星队伍',