diff --git a/dataValidate.php b/dataValidate.php index 50ef390..2b6e5b9 100644 --- a/dataValidate.php +++ b/dataValidate.php @@ -117,7 +117,7 @@ function getByMatch() { var text = data[i].outerHTML; var rows = data[i].getElementsByTagName("td"); if (text.indexOf("$AME") > -1) createError(`AutoMobility Error for Team ${rows[0].textContent}`); - if (text.indexOf("$ACE") > -1) createError(`AutoChargeStation Error for Team${rows[0].textContent}`); + if (text.indexOf("$ACE") > -1) createError(`AutoChargeStation Error for Team ${rows[0].textContent}`); if (text.indexOf("$TCE") > -1) createError(`TeleopChargeStation Error for Team ${rows[0].textContent}`); result.innerHTML += text; } @@ -367,7 +367,7 @@ function getRowByMatchKey(matchKey) { var teleCharge = (robot.teleCharge) == (local[18] != "NONE"); if (!autoMobile) { table[4].bgColor = "red"; - table[4].innerText += " $AME"; + table[4].innerText += " - " + (robot.autoMobile ? 1:0); autoErrors++; } if (!autoCharge) { diff --git a/simpleMatchForm.php b/simpleMatchForm.php index d265808..21d38c8 100644 --- a/simpleMatchForm.php +++ b/simpleMatchForm.php @@ -583,8 +583,7 @@ function validateFormData(data) { var check = teams.indexOf(formattedTeam); if (data["matchNumber"] < 5000 && check == -1) { createErrorAlert(`Team ${data["teamNumber"]} is not in match ${data["matchNumber"]}`); - // Allow submit even if invalid. - // valid = false; + valid = false; } return valid;