refactor: rename is_recipient

This commit is contained in:
莘权 马 2023-11-08 13:42:08 +08:00
parent 93ebe8c103
commit af4c87e123
8 changed files with 19 additions and 19 deletions

View file

@ -59,7 +59,7 @@ class WriteCode(Action):
return
message_filter = {WriteDesign}
design = [i for i in context if i.is_recipient(message_filter)][0]
design = [i for i in context if i.contain_any(message_filter)][0]
ws_name = CodeParser.parse_str(block="Python package name", text=design.content)
ws_path = WORKSPACE_ROOT / ws_name