fix: 小范围修补

This commit is contained in:
2026-01-08 00:56:04 +08:00
parent ed85655e8b
commit 2e4a663adf
4 changed files with 11 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ class MemScreen(Screen):
s = f"阶段: {self.procession.phase.name}\n"
# 收藏状态
if self.repo is not None:
fav_status = "" if self._is_current_atom_favorited() else ""
fav_status = "已收藏" if self._is_current_atom_favorited() else "未收藏"
s += f"收藏: {fav_status}\n"
if config_var.get().get("debug_topline", 0):
try:
@@ -113,7 +113,7 @@ class MemScreen(Screen):
s += f"{stat}\n"
except Exception as e:
s = str(e)
# s += f"当前进度: {self.procession.process() + 1}/{self.procession.total_length()}"
s += f"进度: {self.procession.process() + 1}/{self.procession.total_length()}"
return s
def update_display(self):

View File

@@ -55,6 +55,8 @@ class MCQPuzzle(BasePuzzleWidget):
def _load(self):
cfg = self.atom.registry["nucleon"]["puzzles"][self.alia]
if cfg['mapping'] == {}:
self.screen.rating = 5 # type: ignore
self.puzzle = pz.MCQPuzzle(
cfg["mapping"], cfg["jammer"], int(cfg["max_riddles_num"]), cfg["prefix"]
)
@@ -68,9 +70,9 @@ class MCQPuzzle(BasePuzzleWidget):
logger.debug(self.puzzle.options)
else:
current_options = self.puzzle.options[len(self.inputlist)]
yield Label(setting["primary"], id="sentence")
yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle")
yield Label(f"当前输入: {self.inputlist}", id="inputpreview")
yield Label(setting["primary"], id="sentence")
yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle")
yield Label(f"当前输入: {self.inputlist}", id="inputpreview")
# 渲染当前问题的选项
with Container(id="btn-container"):

View File

@@ -90,7 +90,7 @@ class Recognition(BasePuzzleWidget):
for item in cfg["secondary"]:
if isinstance(item, list):
for j in item:
yield Markdown(f"### {j}") #TODO ANNOTATION
yield Markdown(f"### 笔记: {j}") #TODO ANNOTATION
continue
if isinstance(item, Dict):
total = ""