Commit bc9d35c2 authored by Mark Stenglein's avatar Mark Stenglein

add spring 2018 data

parent cb9ba86f
"crn","name","title","section","campus","session_templates[0].date_range","session_templates[0].days","session_templates[0].time","session_templates[0].location","session_templates[0].class_type","session_templates[0].instructors"
\ No newline at end of file
// Read in excel file
if(typeof require !== 'undefined') XLSX = require('xlsx');
// convert file to workbook
var workbook = XLSX.readFile('GMU2017SP.xlsx');
var workbook = XLSX.readFile('classes2018SP.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('classes2017SP.csv', result, function (err) {
fs.writeFile('classes2018SP.csv', result, function (err) {
if (err) return console.log(err);
console.log('File written to classes2017SP.csv');
console.log('File written to classes2018SP.csv');
});
} catch (err) {
// Errors are thrown for bad options, or if the data is empty and no fields are provided.
......
"crn","name","title","section","campus","session_templates[0].date_range","session_templates[0].days","session_templates[0].time","session_templates[0].location","session_templates[0].class_type","session_templates[0].instructors"
\ No newline at end of file
......@@ -21,7 +21,8 @@
<p>
<div id="terms">Select Term:
<select class="form-control" id="select_term" size="1" onchange="on_term_id();" autocomplete="off">
<option value="201770" selected="selected">Fall 2017</option>
<option value="201810" selected="selected">Sprint 2018</option>
<option value="201770">Fall 2017</option>
<option value="201740">Summer 2017</option>
<option value="201710">Spring 2017</option>
<option value="201670">Fall 2016</option>
......
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