Compare commits
2 Commits
0238ef0f6e
...
f5400de484
Author | SHA1 | Date |
---|---|---|
stupidcomputer | f5400de484 | |
stupidcomputer | 4b35d44abc |
9
Code.gs
9
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],
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -206,6 +206,11 @@ function filtration(data, interns, adults, children) {
|
||||||
var output = [];
|
var output = [];
|
||||||
|
|
||||||
for(datum of data) {
|
for(datum of data) {
|
||||||
|
if(datum === undefined) {
|
||||||
|
SpreadsheetApp.getUi().alert("Couldn't find an intern -- skipping. See the manual for more information.")
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(interns && datum.age == "Intern") {
|
if(interns && datum.age == "Intern") {
|
||||||
output.push(datum);
|
output.push(datum);
|
||||||
} else if(adults && datum.age == "Adult") {
|
} else if(adults && datum.age == "Adult") {
|
||||||
|
|
|
@ -97,6 +97,15 @@ You should see some spreadsheets being magically created, and when you look at t
|
||||||
|
|
||||||
Whenever you make a change to a sheet with an asterisk in front of it, the sheets with the greater than symbol do not synchronize automatically. You need to repopulate them manually by clicking on the "Regenerate Reporting Spreadsheets" button.
|
Whenever you make a change to a sheet with an asterisk in front of it, the sheets with the greater than symbol do not synchronize automatically. You need to repopulate them manually by clicking on the "Regenerate Reporting Spreadsheets" button.
|
||||||
|
|
||||||
|
### I've got an error message
|
||||||
|
|
||||||
|
Below is a series of error messages you may get when using this software, and an explanation of what might have gone wrong.
|
||||||
|
|
||||||
|
**Couldn't find an intern -- skipping**
|
||||||
|
|
||||||
|
This means that the software couldn't find an intern listed in one of the individuals present within the Site Information sheet.
|
||||||
|
Make sure that each person who you reference in the "Those Present" column actually exist in the "Intern Data" sheet, and this error goes away.
|
||||||
|
|
||||||
## Questions?
|
## Questions?
|
||||||
|
|
||||||
If you have any questions, email [me](mailto:ryan@beepboop.systems).
|
If you have any questions, email [me](mailto:ryan@beepboop.systems).
|
Loading…
Reference in New Issue