fix a stupid bug
This commit is contained in:
parent
4b35d44abc
commit
f5400de484
4
Code.gs
4
Code.gs
|
@ -99,12 +99,12 @@ function get_demographic_records_for_site(site_name) {
|
||||||
|
|
||||||
for(row of rows) {
|
for(row of rows) {
|
||||||
if(row[0] === site_name) {
|
if(row[0] === site_name) {
|
||||||
output = output.concat(Array([1]).fill({
|
output = output.concat(Array(row[1]).fill({
|
||||||
"site_name": row[0],
|
"site_name": row[0],
|
||||||
"age": row[2],
|
"age": row[2],
|
||||||
"gender": row[3],
|
"gender": row[3],
|
||||||
"ethnicity": row[4],
|
"ethnicity": row[4],
|
||||||
"race": row[4],
|
"race": row[5],
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue