count num of lists by viewUrl rather than name

This commit is contained in:
Collin M. Barrett 2017-02-01 09:31:50 -06:00
parent 175a8e7f5c
commit 7bc69b28cb

View file

@ -458,7 +458,7 @@ function copyListNamesToStatuses(sheetData, sheetStatuses) {
}
function getNumLists(sheetData) {
var listHeaderData = findColumnHeader(sheetData, "list");
var listHeaderData = findColumnHeader(sheetData, "viewUrl");
var listData = sheetData.getRange(listHeaderData + "2:" + listHeaderData);
for (i = 1; i <= listData.getNumRows(); i++) {
if (!(listData.getCell(i, 1).getValue())) {