Skip to content

Commit

Permalink
Merge pull request #29 from ne-peer/feat/dere-guide-api
Browse files Browse the repository at this point in the history
[update] starlight db api connection
  • Loading branch information
ne-peer authored Dec 5, 2017
2 parents 2f8649f + 6b076e7 commit 16f69c8
Show file tree
Hide file tree
Showing 24 changed files with 79,081 additions and 87,563 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@angular/cli": "^1.4.3",
"@types/jasmine": "2.6.3",
"@types/jasmine": "2.8.2",
"@types/node": "^8.0.31",
"codelyzer": "~4.0.0",
"jasmine-core": "2.8.0",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const sldbJson = ``;
const sldb = JSON.parse(sldbJson)['result'];

const overviewJson = ``;
const ov = JSON.parse(overviewJson);

const fs = require("fs");
// execute
for (let sldbKey in sldb) {
const cards = sldb[sldbKey]['cards'];
const name = sldb[sldbKey]['kanji_spaced'];

ov[name]['sldb_cards'] = cards;
}
console.log(ov);

// export
fs.writeFile('out.json', JSON.stringify(ov));
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 16f69c8

Please sign in to comment.