Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geekan committed Apr 22, 2024
1 parent c0d21c4 commit 3a5ad6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metagpt/actions/write_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def get_codes(task_doc: Document, exclude: str, project_repo: ProjectRepo,
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

Expand Down

0 comments on commit 3a5ad6e

Please sign in to comment.