MCPcopy Create free account
hub / github.com/Tyaoo/picker / parse_results

Method parse_results

bot.py:73–81  ·  view source on GitHub ↗
(results: list)

Source from the content-addressed store, hash-verified

71
72 @staticmethod
73 def parse_results(results: list):
74 text_list = []
75 for result in results:
76 (feed, value), = result.items()
77 text = f'## {feed}\n'
78 for title, link in value.items():
79 text += f'- [{title}]({link})\n'
80 text_list.append(text.strip())
81 return text_list
82
83 def send(self, text_list: list):
84 limiter = Limiter(Rate(20, Duration.MINUTE)) # 频率限制,20条/分钟

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected