ongeki: remove BM card duplicate check
parent
2640f23a00
commit
ada9377c06
titles/ongeki
|
@ -74,18 +74,6 @@ class OngekiReader(BaseReader):
|
||||||
troot = ET.fromstring(f.read())
|
troot = ET.fromstring(f.read())
|
||||||
|
|
||||||
card_id = int(troot.find("Name").find("id").text)
|
card_id = int(troot.find("Name").find("id").text)
|
||||||
|
|
||||||
# skip already existing cards
|
|
||||||
# Hay1tsme 2025/04/08: What is this for, and why does it only check for BM cards?
|
|
||||||
if (
|
|
||||||
await self.data.static.get_card(
|
|
||||||
OngekiConstants.VER_ONGEKI_BRIGHT_MEMORY, card_id
|
|
||||||
)
|
|
||||||
is not None
|
|
||||||
):
|
|
||||||
self.logger.info(f"Card {card_id} already added, skipping")
|
|
||||||
continue
|
|
||||||
|
|
||||||
name = troot.find("Name").find("str").text
|
name = troot.find("Name").find("str").text
|
||||||
chara_id = int(troot.find("CharaID").find("id").text)
|
chara_id = int(troot.find("CharaID").find("id").text)
|
||||||
nick_name = troot.find("NickName").text
|
nick_name = troot.find("NickName").text
|
||||||
|
|
Loading…
Reference in New Issue