Skip to content

Commit

Permalink
perf:公招提示文字优化
Browse files Browse the repository at this point in the history
  • Loading branch information
EightyDollars committed Nov 14, 2023
1 parent a59c2c3 commit 84dbfbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arknights_mower/solvers/recruit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84dbfbb

Please sign in to comment.