Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 12, 2024
1 parent ca80533 commit d0df987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,12 @@ document.getElementById("readInput").addEventListener("click", async function()
for (let i = 0; i < submission.times.length; i++) {
let time = submission.times[i];
let timeStr = JSON.stringify(time);
console.log(time);
for (let jSub = 0; jSub < data.submissions.length; jSub++) {
let cmpSubmission = data.submissions[jSub];
if (cmpSubmission.name === player)
for (let j = 0; j < cmpSubmission.times.length; j++) {
console.log(cmpSubmission.times[j]);
if (JSON.stringify(cmpSubmission.times[j]) == timeStr && (j!=i || iSub!=jSub)) {
writeToOutput(`Removed ${writeTimeOutput(t)}, it has been submitted twice.`);
cmpSubmission.times = cmpSubmission.times.slice(j,1);
Expand Down

0 comments on commit d0df987

Please sign in to comment.