host eliminated from config

This commit is contained in:
Luis Fernando Molina committed 2018-03-05 02:17:58 +01:00
1 parent 7284437b27
commit c0f38866fb
2 files changed
+3 -3

No files matched your search

Binary file not shown.
+3 -3
View File
@@ -6,7 +6,7 @@ if (CONSOLE_LOG === true) {
}
const DEBUG_MODE = false; // This forces the server to read Plotters from the local drive.
const DEBUG_MODE = true; // This forces the server to read Plotters from the local drive.
if (CONSOLE_LOG === true && DEBUG_MODE === true) {
@@ -125,7 +125,7 @@ function initialize() {
let fs = require('fs');
try {
let fileName = '../Competitions/' + competition.host + '/' + competition.repo + '/' + competition.configFile;
let fileName = '../Competitions/' + host.codeName + '/' + competition.repo + '/' + competition.configFile;
fs.readFile(fileName, onFileRead);
function onFileRead(err, pData) {
@@ -157,7 +157,7 @@ function initialize() {
} else {
getGithubData(competition.host, competition.repo, competition.configFile, onDataArrived)
getGithubData(host.codeName, competition.repo, competition.configFile, onDataArrived)
function onDataArrived(pData) {