Compare commits

...

2 Commits

Author SHA1 Message Date
stupidcomputer f5400de484 fix a stupid bug 2024-07-10 18:13:05 -05:00
stupidcomputer 4b35d44abc add a small warning and an explanation 2024-07-10 17:41:10 -05:00
2 changed files with 16 additions and 2 deletions

View File

@ -99,12 +99,12 @@ function get_demographic_records_for_site(site_name) {
for(row of rows) {
if(row[0] === site_name) {
output = output.concat(Array([1]).fill({
output = output.concat(Array(row[1]).fill({
"site_name": row[0],
"age": row[2],
"gender": row[3],
"ethnicity": row[4],
"race": row[4],
"race": row[5],
}));
}
}
@ -206,6 +206,11 @@ function filtration(data, interns, adults, children) {
var output = [];
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") {
output.push(datum);
} else if(adults && datum.age == "Adult") {

View File

@ -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.
### 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?
If you have any questions, email [me](mailto:ryan@beepboop.systems).