message: egrid-data-loader - fix import_utility_emissions importing all files by default bug
diff: @@ -210,7 +210,7 @@ function import_utility_emissions(file_name, opts) {
  { file: "co2-emission-intensity-6.csv", sheet: "Sheet1" },
  ]
  - if (opts.file = "all" || (opts.file == "eGRID2018_Data_v2.xlsx" && opts.sheet == "NRL18")) {
  + if (opts.file == "all" || (opts.file == "eGRID2018_Data_v2.xlsx" && opts.sheet == "NRL18")) {
  let data = parse_worksheet(supportedFiles[0].file, supportedFiles[0], function(data) {
  // import data for each valid row, eg:
  // Year = 2018 from 'Data Year'
  @@ -258,7 +258,7 @@ function import_utility_emissions(file_name, opts) {
  });
  });
  }
  - if (opts.file = "all" || (opts.file == "eGRID2018_Data_v2.xlsx" && opts.sheet == "ST18")) {
  + if (opts.file == "all" || (opts.file == "eGRID2018_Data_v2.xlsx" && opts.sheet == "ST18")) {
  let data = parse_worksheet(supportedFiles[1].file, supportedFiles[1], function(data) {
  async.eachSeries(data, function iterator(row, callback) {
  // skip empty rows
  @@ -293,7 +293,7 @@ function import_utility_emissions(file_name, opts) {
  });
  });
  }
  - if (opts.file = "all" || (opts.file == "eGRID2018_Data_v2.xlsx" && opts.sheet == "US18")) {
  + if (opts.file == "all" || (opts.file == "eGRID2018_Data_v2.xlsx" && opts.sheet == "US18")) {
  let data = parse_worksheet(supportedFiles[2].file, supportedFiles[2], function(data) {
  async.eachSeries(data, function iterator(row, callback) {
  // skip empty rows
  @@ -328,7 +328,7 @@ function import_utility_emissions(file_name, opts) {
  });
  });
  }
  - if (opts.file = "all" || (opts.file == "2019-RES_proxies_EEA.csv" && opts.sheet == "Sheet1")) {
  + if (opts.file == "all" || (opts.file == "2019-RES_proxies_EEA.csv" && opts.sheet == "Sheet1")) {
  let data = parse_worksheet(supportedFiles[3].file, supportedFiles[3], function(data) {
  async.eachSeries(data, function iterator(row, callback) {
  // skip empty rows
  @@ -364,7 +364,7 @@ function import_utility_emissions(file_name, opts) {
  });
  });
  }
  - if (opts.file = "all" || (opts.file == "co2-emission-intensity-6.csv" && opts.sheet == "Sheet1")) {
  + if (opts.file == "all" || (opts.file == "co2-emission-intensity-6.csv" && opts.sheet == "Sheet1")) {
  console.log("Assuming 2019-RES_proxies_EEA.csv has already been imported...");
  let data = parse_worksheet(supportedFiles[4].file, supportedFiles[4], function(data) {
  async.eachSeries(data, function iterator(row, callback) {
  