refine code

This commit is contained in:
geekan 2024-01-10 16:18:55 +08:00
parent d9caaea753
commit 4df716bc6c

View file

@ -95,7 +95,7 @@ class WriteCode(Action):
async def run(self, *args, **kwargs) -> CodingContext:
bug_feedback = await self.file_repo.get_file(filename=BUGFIX_FILENAME, relative_path=DOCS_FILE_REPO)
coding_context = CodingContext.loads(self.context.content)
coding_context = CodingContext.loads(self.i_context.content)
test_doc = await self.file_repo.get_file(
filename="test_" + coding_context.filename + ".json", relative_path=TEST_OUTPUTS_FILE_REPO
)