mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
scoreboard-xcpcio: use getAlphabeticId
This commit is contained in:
1 file changed
+2
-2
@@ -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: '打星队伍',
|
||||
|
||||
Reference in new issue
Block a user