mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: fix contest with more than 26 problems have wrong alphabetic id (#1008)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
627ce77d30
commit
dc6345c0b3
11 files changed
+30
-18
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import path from 'path';
|
||||
import * as status from '@hydrooj/common/status';
|
||||
import { findFileSync } from '@hydrooj/utils/lib/utils';
|
||||
import { findFileSync, getAlphabeticId } from '@hydrooj/utils/lib/utils';
|
||||
import {
|
||||
avatar, Context, difficultyAlgorithm, fs, PERM, PRIV, Service, STATUS, yaml,
|
||||
} from 'hydrooj';
|
||||
@@ -130,7 +130,7 @@ class Nunjucks extends nunjucks.Environment {
|
||||
this.addGlobal('instanceof', (a, b) => a instanceof b);
|
||||
this.addGlobal('paginate', misc.paginate);
|
||||
this.addGlobal('size', misc.size);
|
||||
this.addGlobal('utils', { status });
|
||||
this.addGlobal('utils', { status, getAlphabeticId });
|
||||
this.addGlobal('avatarUrl', avatar);
|
||||
this.addGlobal('formatSeconds', misc.formatSeconds);
|
||||
this.addGlobal('model', global.Hydro.model);
|
||||
|
||||
Reference in new issue
Block a user