diff --git a/server/src/V2/Components/Card.ts b/server/src/V2/Components/Card.ts index 9879d1e21..4936fa1c9 100644 --- a/server/src/V2/Components/Card.ts +++ b/server/src/V2/Components/Card.ts @@ -80,10 +80,8 @@ export default class Card implements LocalCard { const res = (require(`../../../generated/${lang}/cards.json`) as Array).find((c) => { return objectLoop(params, (it, key) => { if (key === 'set' && typeof it === 'string') { - console.log("set", c['set'].id, it, lightCheck(c['set'].id, it)) return (c['set'].id === it || lightCheck(c['set'].name, it)) } - console.log("other field", key, c[key as 'localId'], it, lightCheck(c[key as 'localId'], it)) return lightCheck(c[key as 'localId'], it) }) }) diff --git a/server/src/util.ts b/server/src/util.ts index 359b61935..fc7ad1aa9 100644 --- a/server/src/util.ts +++ b/server/src/util.ts @@ -44,17 +44,16 @@ export function betterSorter(a: string, b: string) { return a >= b ? 1 : -1 } -export function tree(path: string, padding = 0) { - const folder = fs.readdirSync(path) - for (const file of folder) { - const filePath = path + '/' + file - console.log(filePath.padStart(padding, '-')) - try { - fs.lstatSync(filePath).isDirectory() - tree(filePath) - } catch {} - } -} +// export function tree(path: string, padding = 0) { +// const folder = fs.readdirSync(path) +// for (const file of folder) { +// const filePath = path + '/' + file +// try { +// fs.lstatSync(filePath).isDirectory() +// tree(filePath) +// } catch {} +// } +// } export function lightCheck(source: any, item: any): boolean { if (typeof source === 'undefined') {