mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
migrate: add jnoj migrate script
This commit is contained in:
9 files changed
+672
-15
No files matched your search
@@ -297,7 +297,7 @@ hydrooj install https://hydro.ac/hydroac-client.zip
|
||||
description = description.replace(`/upload/${fileWithPath}`, `file://${filename}`);
|
||||
}
|
||||
// WHY you allow contest with end time BEFORE start time? WHY???
|
||||
const endAt = moment(tdoc.end_time).isSameOrBefore(tdoc.start_time) ? moment(tdoc.end_time).add(1, 'minute').toDate() : tdoc.end_time;
|
||||
const endAt = moment(tdoc.end_time).isSameOrBefore(tdoc.start_time) ? moment(tdoc.start_time).add(1, 'minute').toDate() : tdoc.end_time;
|
||||
let isAssignMode = false;
|
||||
if (tdoc.private === 1 && tdoc.password === '') {
|
||||
isAssignMode = true;
|
||||
|
||||
Reference in new issue
Block a user