Merge branch 'stellahong-mgx_ops-patch-35613' into 'mgx_ops'

Bug fix

See merge request pub/MetaGPT!64
This commit is contained in:
洪思睿 2024-04-22 10:12:04 +00:00
commit eb4bc84b91

View file

@ -166,7 +166,7 @@ class WriteCode(Action):
if not task_doc.content:
task_doc = project_repo.docs.task.get(filename=task_doc.filename)
m = json.loads(task_doc.content)
code_filenames = m.get(TASK_LIST.key, []) if use_inc else m.get(REFINED_TASK_LIST.key, [])
code_filenames = m.get(TASK_LIST.key, []) if not use_inc else m.get(REFINED_TASK_LIST.key, [])
codes = []
src_file_repo = project_repo.srcs