main.js
/**
 * Output information about the matching results to the given sheet.
 */
Output information about the matching results to the given sheet.
Output information about the matching results to the given sheet .
function populateMetaSheet(metaSheet, matcher) {
    metaSheet.clear();
    const metaLines = [];
    metaSheet.appendRow(META_SHEET_HEADER1);
    Logger.log(matcher.workshopsByPopularity.length);
    for (let i = 1; i < matcher.workshopsByPopularity.length + 1; i++) {
        const workshopLine = [];
        const workshop = matcher.workshopsByNumber[i];
        workshopLine.push(workshop.name);
        workshopLine.push(workshop.number);
        let sectionNumber = 1;
        for (const session of workshop.sessions) {
            workshopLine.push(sectionNumber);
            workshopLine.push(session.slotsFilled);
            workshopLine.push(session.capacity);
            sectionNumber++;
        }
        metaLines.push(workshopLine);
    }
    outputRows(metaSheet, metaLines);
}
function populateMetaSheet ( metaSheet , matcher ) { metaSheet . clear ( ) ; const metaLines = [ ] ; metaSheet . appendRow ( META_SHEET_HEADER1 ) ; Logger . log ( matcher . workshopsByPopularity . length ) ; for ( let i = 1 ; i < matcher . workshopsByPopularity . length + 1 ; i ++ ) { const workshopLine = [ ] ; const workshop = matcher . workshopsByNumber [ i ] ; workshopLine . push ( workshop . name ) ; workshopLine . push ( workshop . number ) ; let sectionNumber = 1 ; for ( const session of workshop . sessions ) { workshopLine . push ( sectionNumber ) ; workshopLine . push ( session . slotsFilled ) ; workshopLine . push ( session . capacity ) ; sectionNumber ++ ; } metaLines . push ( workshopLine ) ; } outputRows ( metaSheet , metaLines ) ; }
Output information about the matching results to the given sheet.
Output information about the matching results to the given sheet .
// Header 2 is not yet used //metaSheet.appendRow(META_SHEET_HEADER2);