From 84dbfbbcc05c4bc7eebfb5ace217395aacf90fb5 Mon Sep 17 00:00:00 2001 From: EightyDollars Date: Tue, 14 Nov 2023 16:07:04 +0800 Subject: [PATCH] =?UTF-8?q?perf=EF=BC=9A=E5=85=AC=E6=8B=9B=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E5=AD=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/recruit.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arknights_mower/solvers/recruit.py b/arknights_mower/solvers/recruit.py index edd081529..cb81791ac 100644 --- a/arknights_mower/solvers/recruit.py +++ b/arknights_mower/solvers/recruit.py @@ -79,11 +79,15 @@ def run(self, priority: list[str] = None, send_message_config={}, recruit_config logger.info(f"上次公招结果汇总{self.result_agent}") if self.agent_choose: - logger.info(f'公招标签:{self.agent_choose}') + for pos in self.agent_choose: + agent = [] + for item in self.agent_choose[pos]['result']: + agent.append(item['name']) + logger.info("第{}个位置:[" + ",".join(self.agent_choose[pos]['tags']) + "]:{}".format(pos, ",".join(agent))) if self.agent_choose or self.result_agent: self.send_message(recruit_template.render(recruit_results=self.agent_choose, recruit_get_agent=self.result_agent, - permit_count=self.permit_count.__str__(), + permit_count=self.permit_count, title_text="公招汇总"), "公招汇总通知", "html") return self.agent_choose, self.result_agent