整合子模块
This commit is contained in:
@@ -51,10 +51,10 @@ class Recognition(BasePuzzleWidget):
|
||||
|
||||
nucleon = self.atom.registry['nucleon']
|
||||
metadata = self.atom.registry['nucleon'].metadata
|
||||
primary = nucleon[cfg["primary"]]
|
||||
primary = cfg["primary"]
|
||||
|
||||
with Center():
|
||||
yield Static(f"[dim]{nucleon[cfg['top_dim']]}[/]")
|
||||
yield Static(f"[dim]{cfg['top_dim']}[/]")
|
||||
yield Label("")
|
||||
|
||||
for old, new in replace_dict.items():
|
||||
@@ -67,7 +67,7 @@ class Recognition(BasePuzzleWidget):
|
||||
id="sentence" + str(hash(item)),
|
||||
)
|
||||
|
||||
for item in nucleon[cfg["secondary"]]:
|
||||
for item in cfg["secondary"]:
|
||||
if isinstance(item, list):
|
||||
for j in item:
|
||||
yield Markdown(f"### {metadata['annotation'][item]}: {j}")
|
||||
|
||||
Reference in New Issue
Block a user