Skip to content

Commit

Permalink
another small change
Browse files Browse the repository at this point in the history
  • Loading branch information
William Yuan committed Oct 23, 2022
1 parent 218500d commit d6fc6fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function uploadData() {
}
var data = sep_data[i].split(',');
//data[0] = robot number, data[1] = match number
if(data[1].length !=2){
data[1] = "0" + data[1];
}
var json_data =
{
"Scout Name": data[2],
Expand All @@ -55,8 +58,9 @@ function uploadData() {
"ZMatch Number": data[1],
"ZTeam": data[0]
};

cr(or(sr(db, 'Events/Test2022/Robots/' + data[0] + '/'), data[1]), json_data)
cr(or(sr(db, `Events/Test2022/Matches/`), (data[1] + "-" + data[3] + "-" + data[0])),json_data)
cr(or(sr(db, `Events/Test2022/Matches/`), (data[1] + "-" + data[3])),json_data)
document.getElementById("status").innerHTML += "Successful Upload at scan " + String(scan_num) + "<br>" ;
scan_num +=1;
}
Expand Down

0 comments on commit d6fc6fa

Please sign in to comment.