mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: typing for tsdoc (#1164)
This commit is contained in:
1 parent
fbf27379b3
commit
a6cdbb9914
11 files changed
+108
-44
No files matched your search
@@ -368,7 +368,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
|
||||
if (this.tdoc && this.tsdoc) {
|
||||
const fields = ['attend', 'startAt', 'endAt'];
|
||||
if (contest.canShowSelfRecord.call(this, this.tdoc, true)) fields.push('detail');
|
||||
this.tsdoc = pick(this.tsdoc, fields);
|
||||
this.tsdoc = pick(this.tsdoc, fields) as typeof this.tsdoc;
|
||||
this.response.body.tsdoc = this.tsdoc;
|
||||
}
|
||||
this.response.template = 'problem_detail.html';
|
||||
|
||||
Reference in new issue
Block a user