Commit 76c5bbb6 authored by nanahira's avatar nanahira

fix

parent 3f0161fd
Pipeline #29361 failed with stages
in 59 seconds
......@@ -85,7 +85,7 @@ export class Card {
}
return (cardType & (0x4000000 | 0x800000 | 0x2000 | 0x40)) > 0;
}
async loadData(db: Database) {
async loadData(db: Database, symbol: string) {
this.preDatas = this.datas;
this.preTexts = this.texts;
this.loadedDatas = await db.get("select * from datas where id = ?", [this.code]);
......@@ -99,7 +99,7 @@ export class Card {
...this.preTexts
}
this.datas.ot |= 0x8;
this.texts.desc += '\r\n\r\n\u2605简体中文卡';
this.texts.desc += '\r\n\r\n\u2605' + symbol;
}
getSQLQueries() {
const datasArray = this.getDatasArray();
......@@ -228,7 +228,7 @@ export class DBReader extends Base {
async run(cards: Card[], options: {
extraBanlists?: Banlist[]
} = {}) {
await Promise.all(cards.map(card => card.loadData(this.cndb)));
await Promise.all(cards.map(card => card.loadData(this.cndb, this.config.descSymbol)));
const extendedCards = (await Promise.all(cards.map(card => card.getRelatedCards(this.cndb)))).flat();
const allCards = _.uniqBy(cards.concat(extendedCards), (s) => s.code);
const queries = allCards.flatMap(card => card.getSQLQueries());
......
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