diff --git a/hydro/lib/misc.js b/hydro/lib/misc.js
index f27e671ce..d07a4bddc 100644
--- a/hydro/lib/misc.js
+++ b/hydro/lib/misc.js
@@ -11,9 +11,6 @@ exports.datetime_span = function (dt, relative = true, format = '%Y-%m-%d %H:%M:
dt.format(format)
);
};
-exports.nl2br = function (self) {
- return self.replace(/\n/gm, '
');
-};
exports.paginate = function* (page, num_pages) {
let radius = 2, first, last;
if (page > 1) {
diff --git a/hydro/module/contest/oi.js b/hydro/module/contest/oi.js
index e2ad6d266..5ec835c61 100644
--- a/hydro/module/contest/oi.js
+++ b/hydro/module/contest/oi.js
@@ -22,12 +22,14 @@ module.exports = {
let columns = [
{ type: 'rank', value: _('Rank') },
{ type: 'user', value: _('User') },
- { type: 'display_name', value: _('Display Name') },
{ type: 'total_score', value: _('Total Score') }
];
for (let i in tdoc.pids)
if (is_export)
- columns.push({ type: 'problem_score', value: '#{0} {1}'.format(i + 1, pdict[tdoc.pids[i]].title) });
+ columns.push({
+ type: 'problem_score',
+ value: '#{0} {1}'.format(i + 1, pdict[tdoc.pids[i]].title)
+ });
else
columns.push({
type: 'problem_detail',
@@ -37,13 +39,12 @@ module.exports = {
let rows = [columns];
for (let [rank, tsdoc] of ranked_tsdocs) {
let tsddict = {};
- if (tdoc.detail)
- for (let item of tsdoc.detail)
+ if (tsdoc.journal)
+ for (let item of tsdoc.journal)
tsddict[item.pid] = item;
let row = [];
row.push({ type: 'string', value: rank });
row.push({ type: 'user', value: udict[tsdoc.uid].uname, raw: udict[tsdoc.uid] });
- row.push({ type: 'display_name', value: dudict[tsdoc.uid].display_name || '' });
row.push({ type: 'string', value: tsdoc.score || 0 });
for (let pid of tdoc.pids)
row.push({
diff --git a/templates/contest_scoreboard.html b/templates/contest_scoreboard.html
index c8ce8e612..6e7a8f96c 100644
--- a/templates/contest_scoreboard.html
+++ b/templates/contest_scoreboard.html
@@ -4,10 +4,10 @@