refine code

This commit is contained in:
geekan 2024-01-10 16:18:55 +08:00 committed by 莘权 马
parent 00a212b52b
commit bd63df212d

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
)