Commit 6944d6e1 authored by Mark Stenglein's avatar Mark Stenglein

DATAFILES: Update Spring 2018 to include changes

This patch updates the Spring 2018 to include some recent changes to
room locations, and others as they exist.
Signed-off-by: Mark Stenglein's avatarMark Stenglein <mstengle@gmu.edu>
parent 4119aeb4
This diff is collapsed.
// Read in excel file
if(typeof require !== 'undefined') XLSX = require('xlsx');
// convert file to workbook
var workbook = XLSX.readFile('classes2018SP.xlsx');
var workbook = XLSX.readFile('classes2018SP-jan17.xlsx');
// get sheet
var worksheet = workbook.Sheets[workbook.SheetNames[0]];
// convert sheet to JSON
......@@ -105,9 +105,9 @@ try {
result = result.substring(result.indexOf("\n") + 1);
// write a JSON file.
var fs = require('fs');
fs.writeFile('classes2018SP.csv', result, function (err) {
fs.writeFile('classes2018SP-jan17.csv', result, function (err) {
if (err) return console.log(err);
console.log('File written to classes2018SP.csv');
console.log('File written to classes2018SP-jan17.csv');
});
} catch (err) {
// Errors are thrown for bad options, or if the data is empty and no fields are provided.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment