Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
conlacda committed May 6, 2024
1 parent e7ffbce commit 98764d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const addStatusColumnToTable = (result) => {
}
}


class Submission {
constructor(tableRow) {
const tds = tableRow.find('td')
Expand All @@ -62,8 +61,4 @@ class Submission {
this.memory = isWJOrCE ? 0 : tds.eq(8).text();
this.detail = isWJOrCE ? tds.eq(7).find('a:first').href : tds.eq(9).find('a:first').href;
}

isRunning() {
return this.status === 'WJ' || this.status === 'JD';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Testcase {
const lines = content.split('\n');
for (let i = 0; i < lines.length - 1; i++) {
const [txtfile, inputsize, outputsize] = lines[i].split(',');
list.push(new Testcase(txtfile, inputsize, outputsize));
list.push(new Testcase(txtfile, parseInt(inputsize), parseInt(outputsize)));
}
}
return list;
Expand Down

0 comments on commit 98764d2

Please sign in to comment.