Skip to content

Commit

Permalink
needs to be accurate under 5000
Browse files Browse the repository at this point in the history
  • Loading branch information
MihirYJoshi committed Sep 16, 2023
1 parent 57958d9 commit 0855ee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dataValidate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions simpleMatchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0855ee0

Please sign in to comment.