mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: remove unexpected access to tdoc
This commit is contained in:
1 parent
d0116ac43a
commit
b4bb02bd57
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.28.6",
|
||||
"version": "2.28.7",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -283,8 +283,8 @@ class HomeworkEditHandler extends Handler {
|
||||
datePenaltyText: penaltySince.format('YYYY-M-D'),
|
||||
timePenaltyText: penaltySince.format('hh:mm'),
|
||||
extensionDays,
|
||||
penaltyRules: yaml.dump(tdoc.penaltyRules),
|
||||
pids: tdoc.pids.join(','),
|
||||
penaltyRules: tid ? yaml.dump(tdoc.penaltyRules) : null,
|
||||
pids: tid ? tdoc.pids.join(',') : '',
|
||||
path,
|
||||
page_name: tid ? 'homework_edit' : 'homework_create',
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user