Commit e398f591 authored by nanahira's avatar nanahira

extra cards

parent 385674f6
Pipeline #3920 passed with stages
in 2 minutes and 43 seconds
...@@ -2,12 +2,14 @@ import { DBReader } from "./src/dbreader"; ...@@ -2,12 +2,14 @@ import { DBReader } from "./src/dbreader";
import { NWFetcher } from "./src/nwfetcher"; import { NWFetcher } from "./src/nwfetcher";
import _ from "underscore"; import _ from "underscore";
import { CNOCGFetcher } from "./src/cnocg"; import { CNOCGFetcher } from "./src/cnocg";
import { ExtraCards } from "./src/ExtraCards";
async function main() { async function main() {
const dbreader = new DBReader({ name: "Database", level: "debug" }); const dbreader = new DBReader({ name: "Database", level: "debug" });
await dbreader.init(); await dbreader.init();
const cards = await CNOCGFetcher.fetchOnce(); const cards = await CNOCGFetcher.fetchOnce();
await dbreader.run(cards); const missingExtraCards = ExtraCards.filter(c => !cards.some(cc => c.code === cc.code));
await dbreader.run(cards.concat(missingExtraCards));
process.exit(); process.exit();
} }
main(); main();
import { Card } from "./dbreader"
export const ExtraCardCodes = [
51126152,
6353603,
91812341,
32600024,
15981690,
12538374,
36205132,
63845230,
911883,
60222582,
99330325,
56111151,
16051717,
33198837,
56910167,
]
export const ExtraCards = ExtraCardCodes.map(code => new Card(code));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment