From f15766dff588e564a2ead91bb49da08fef347799 Mon Sep 17 00:00:00 2001 From: Aman L Date: Sun, 24 Sep 2023 05:29:51 +0530 Subject: [PATCH] Bug fixes --- api/controllers/submission.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/controllers/submission.js b/api/controllers/submission.js index 963c27d..869034d 100644 --- a/api/controllers/submission.js +++ b/api/controllers/submission.js @@ -211,16 +211,16 @@ class submission { console.log(url); let completion = false; let data_sent_back = { - error_1: [false, false, false, false], //false means it passed that grp + error1: [false, false, false, false], //false means it passed that grp //[complilation error/runtime,time limit exceeded, O/P failed] - error_2: [false, false, false, false], - error_3: [false, false, false, false], + error2: [false, false, false, false], + error3: [false, false, false, false], Sub_db: "", Score: "", test_passed : "", no_of_test : "" }; - const list = [data_sent_back.error_1,data_sent_back.error_2,data_sent_back.error_3]; + const list = [data_sent_back.error1,data_sent_back.error2,data_sent_back.error3]; let errors = {}; let i = 0; console.log(grp); @@ -331,7 +331,7 @@ class submission { if (completion) { //Checking whether complilation error or runtime error Object.keys(errors).forEach((ele) => { - console.log("jwngbinsdvn",failed.length,tests.length,errors[ele][0]); + //console.log("jwngbinsdvn",failed.length,tests.length,errors[ele][0]); if (failed.length == tests.length && errors[ele][0]){ console.log("jwngbinsdvn",failed.length,tests.length,errors[ele][0]); errors[ele][0] = true;