Commit e688f94d authored by nanahira's avatar nanahira

rename

parent bcfeac62
import { DBReader } from "./src/dbreader"; import { DBReader } from "./src/dbreader";
import { CNFetcher } from "./src/fetcher"; import { NWFetcher } from "./src/nwfetcher";
import _ from "underscore"; import _ from "underscore";
async function fetchCardsFromNW(dbreader: DBReader) { async function fetchCardsFromNW(dbreader: DBReader) {
const fetcher = new CNFetcher({ name: "Fetcher", level: "debug" }); const fetcher = new NWFetcher({ name: "Fetcher", level: "debug" });
await fetcher.init(); await fetcher.init();
const strings = await fetcher.fetch(); const strings = await fetcher.fetch();
return await dbreader.getAllCardsFromJapaneseNames(strings); return await dbreader.getAllCardsFromJapaneseNames(strings);
......
...@@ -13,7 +13,7 @@ function convertCharToFullSize(char: string) { ...@@ -13,7 +13,7 @@ function convertCharToFullSize(char: string) {
return char; return char;
} }
export class CNFetcher extends Base { export class NWFetcher extends Base {
private async fetchPage(url: string): Promise<string> { private async fetchPage(url: string): Promise<string> {
this.log.debug(`Downloading content from ${url} .`); this.log.debug(`Downloading content from ${url} .`);
const { data } = await axios.get(url, { const { data } = await axios.get(url, {
......
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