Fix: [EN] Handle omitted assignment names

This commit is contained in:
LmeSzinc 2024-05-08 13:47:29 +08:00
parent d61924a42b
commit 5ce334ca8c

View File

@ -19,6 +19,16 @@ class AssignmentEntry(Keyword):
def __hash__(self) -> int: def __hash__(self) -> int:
return super().__hash__() return super().__hash__()
@classmethod
def _compare(cls, name, keyword):
# 2024.05.08 Assignment names are omitted in EN
if name == keyword:
return True
# namelesslandnameless.. Nameless Land, Nameless People
if name[:17] == keyword[:17]:
return True
return False
@dataclass(repr=False) @dataclass(repr=False)
class AssignmentEntryDetailed(Keyword): class AssignmentEntryDetailed(Keyword):