Skip to content

Commit

Permalink
Finalize server build
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kim committed Dec 13, 2018
1 parent a13563a commit 9c99799
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,14 @@ function reduceFinished(call, callback) {

for(let i = 0; i < aliveNodePorts.length; i++) {
if (sortedStringList[i]) {
printString += sortedStringList[i];
// ------------- If anything broke delete code between lines -----------
console.log(JSON.parse(sortedStringList[i]));
let sortedJSONList = JSON.parse(sortedStringList[i]);
Object.entries(sortedJSONList).forEach(element =>{
printString += element[0] +"\n" + element[1] +"\n";
});
// ---------------------------------------------------------------------
//printString += sortedStringList[i] + "\n";
}
}

Expand Down
17 changes: 14 additions & 3 deletions text.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{"Come Together":"{\"album\":\"Abbey Road\",\"artist\":\"The Beatles\",\"clicks\":0,\"guid\":\"e18f7c6f7e34c42b05cf486a08e6b782d9abb226\"}","Feel Good Inc.":"{\"album\":\"Demon Days\",\"artist\":\"Gorillaz\",\"clicks\":0,\"guid\":\"e7cf9b81e8e9549eb696006ac984cba13617c6fa\"}","Help!":"{\"album\":\"Help!\",\"artist\":\"The Beatles\",\"clicks\":0,\"guid\":\"010ec1bd60f593c48c1264ba628cc37eb57a7e8e\"}","Hooked on a Feeling":"{\"album\":\"Hooked on a Feeling\",\"artist\":\"Blue Swede\",\"clicks\":0,\"guid\":\"43c6fc3191430c09fcf00f205454a7b488dcf0f9\"}"}
{"Help!":"{\"album\":\"Help!\",\"artist\":\"The Beatles\",\"clicks\":0,\"guid\":\"010ec1bd60f593c48c1264ba628cc37eb57a7e8e\"}","Hooked on a Feeling":"{\"album\":\"Hooked on a Feeling\",\"artist\":\"Blue Swede\",\"clicks\":0,\"guid\":\"43c6fc3191430c09fcf00f205454a7b488dcf0f9\"}","Lucky You":"{\"album\":\"Kamikaze\",\"artist\":\"Eminem\",\"clicks\":0,\"guid\":\"94cb2803a7a40db8da4872a3dcd762f013b0f786\"}","Pumped Up Kicks":"{\"album\":\"Pumped Up Kicks\",\"artist\":\"Foster the People\",\"clicks\":0,\"guid\":\"4a41bdb092d604d05c679b9a0d68a86541880685\"}"}
{"Pumped Up Kicks":"{\"album\":\"Pumped Up Kicks\",\"artist\":\"Foster the People\",\"clicks\":0,\"guid\":\"4a41bdb092d604d05c679b9a0d68a86541880685\"}","September":"{\"album\":\"September\",\"artist\":\"Earth, Wind & Fire\",\"clicks\":0,\"guid\":\"d85c96151e7677574203a7e2c70950392a299000\"}"}
Come Together
{"album":"Abbey Road","artist":"The Beatles","clicks":0,"guid":"e18f7c6f7e34c42b05cf486a08e6b782d9abb226"}
Feel Good Inc.
{"album":"Demon Days","artist":"Gorillaz","clicks":0,"guid":"e7cf9b81e8e9549eb696006ac984cba13617c6fa"}
Help!
{"album":"Help!","artist":"The Beatles","clicks":0,"guid":"010ec1bd60f593c48c1264ba628cc37eb57a7e8e"}
Hooked on a Feeling
{"album":"Hooked on a Feeling","artist":"Blue Swede","clicks":0,"guid":"43c6fc3191430c09fcf00f205454a7b488dcf0f9"}
Lucky You
{"album":"Kamikaze","artist":"Eminem","clicks":0,"guid":"94cb2803a7a40db8da4872a3dcd762f013b0f786"}
Pumped Up Kicks
{"album":"Pumped Up Kicks","artist":"Foster the People","clicks":0,"guid":"4a41bdb092d604d05c679b9a0d68a86541880685"}
September
{"album":"September","artist":"Earth, Wind & Fire","clicks":0,"guid":"d85c96151e7677574203a7e2c70950392a299000"}

0 comments on commit 9c99799

Please sign in to comment.