Browse Source

Merge branch 'master' of zhaojunzhe/fair-web into master

pull/31/head
richie 5 years ago committed by Gogs
parent
commit
6563841df5
  1. 2
      models-built/contest_player.js
  2. 2
      models-built/contest_player.js.map
  3. 3
      models/contest_player.ts

2
models-built/contest_player.js

@ -138,7 +138,7 @@ var ContestPlayer = /** @class */ (function (_super) {
if (this.score_details[judge_state.problem_id] && this.score_details[judge_state.problem_id].judge_id > judge_state.id) if (this.score_details[judge_state.problem_id] && this.score_details[judge_state.problem_id].judge_id > judge_state.id)
return [2 /*return*/]; return [2 /*return*/];
this.score_details[judge_state.problem_id] = { this.score_details[judge_state.problem_id] = {
score: Math.max(judge_state.score, this.score_details[judge_state.problem_id].score), score: this.score_details[judge_state.problem_id] ? Math.max(judge_state.score, this.score_details[judge_state.problem_id].score) : judge_state.score,
judge_id: judge_state.id judge_id: judge_state.id
}; };
this.score = 0; this.score = 0;

2
models-built/contest_player.js.map

File diff suppressed because one or more lines are too long

3
models/contest_player.ts

@ -80,9 +80,8 @@ export default class ContestPlayer extends Model {
} }
} else if (this.contest.type === 'noi') { } else if (this.contest.type === 'noi') {
if (this.score_details[judge_state.problem_id] && this.score_details[judge_state.problem_id].judge_id > judge_state.id) return; if (this.score_details[judge_state.problem_id] && this.score_details[judge_state.problem_id].judge_id > judge_state.id) return;
this.score_details[judge_state.problem_id] = { this.score_details[judge_state.problem_id] = {
score: Math.max(judge_state.score ,this.score_details[judge_state.problem_id].score), score: this.score_details[judge_state.problem_id] ? Math.max(judge_state.score ,this.score_details[judge_state.problem_id].score) : judge_state.score,
judge_id: judge_state.id judge_id: judge_state.id
}; };

Loading…
Cancel
Save