mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix #151
This commit is contained in:
1 parent
e6c1592875
commit
3ade228d47
3 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.28.29",
|
||||
"version": "2.28.30",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
} from '../service/server';
|
||||
|
||||
export const parseCategory = (value: string) => flatten(value.split('+').map((e) => e.split(','))).map((e) => e.trim());
|
||||
export const parsePid = (value: string) => (isSafeInteger(value) ? parseInt(value, 10) : value);
|
||||
export const parsePid = (value: string) => (isSafeInteger(value) ? +value : value);
|
||||
|
||||
export class ProblemHandler extends Handler {
|
||||
async cleanup() {
|
||||
|
||||
@@ -211,7 +211,7 @@ class RecordModel {
|
||||
}
|
||||
if (!contestInfo) {
|
||||
return RecordModel.coll.find({
|
||||
domainId, uid, pdomain, pid, contest: { $exists: false },
|
||||
domainId, uid, pdomain, pid, contest: null,
|
||||
});
|
||||
}
|
||||
return RecordModel.coll.find({
|
||||
|
||||
Reference in new issue
Block a user