diff --git a/ktoolbox/action/job.py b/ktoolbox/action/job.py index a3cd728..74d50ed 100644 --- a/ktoolbox/action/job.py +++ b/ktoolbox/action/job.py @@ -59,7 +59,7 @@ async def create_job_from_post( async with aiofiles.open(content_path, "w", encoding=config.downloader.encoding) as f: await f.write(post.content) if dump_post_data: - async with aiofiles.open(str(post_path / DataStorageNameEnum.PostData), "w", encoding="utf-8") as f: + async with aiofiles.open(str(post_path / DataStorageNameEnum.PostData.value), "w", encoding="utf-8") as f: await f.write( post.model_dump_json(indent=config.json_dump_indent) )