Skip to content

Commit

Permalink
fix an error where the last card of a cube csv file was being exclude…
Browse files Browse the repository at this point in the history
…d. also update sets.
  • Loading branch information
walkingeyerobot committed Aug 29, 2020
1 parent ff0fd8d commit 29e3e8d
Show file tree
Hide file tree
Showing 4 changed files with 1,071 additions and 1,063 deletions.
2 changes: 1 addition & 1 deletion makedraft/csv2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function GetIndividualCards(rawCards) {

resp.on('end', () => {
var obj = JSON.parse(data);
ProcessIndividualCard(rawCard, obj);
if (idx < rawCards.length) {
ProcessIndividualCard(rawCard, obj);
GetSingleCard(rawCards[idx++]);
} else {
ProcessAllCards();
Expand Down
Loading

0 comments on commit 29e3e8d

Please sign in to comment.