spotboard / domjudge-converter

An experimental script that converts DOMJudge's API results into spotboard-compatible JSONs.
7 stars 9 forks source link

Spotboard says scoreboard has been frozen even if I did not freeze it. #3

Closed hoony9x closed 7 years ago

hoony9x commented 7 years ago

This happens when freeze_time and unfreeze_time are not defined in DOMjudge. In this case, "noMoreUpdate" in "runs.json" sets to 'null' and spotboard says "scoreboard has been frozen".;

myungwoo commented 7 years ago

Below line was a problem:

this.frozen = (contest.freeze && now >= contest.freeze) && !(config.unfreeze || contest.unfreeze && now >= contest.unfreeze);

It's because of Javascript's Logical Operators doesn't always return a boolean value.

myungwoo commented 7 years ago

Solved by 0b0cd036951e7c47635bacb147c04875c3f70c65