From 4eeaf3322fe5930d6ed43003ce90ff70ed6bbad6 Mon Sep 17 00:00:00 2001 From: Ljzd-PRO Date: Thu, 9 Nov 2023 04:46:48 +0800 Subject: [PATCH] fix: `DataStorageNameEnum.PostData` -> `DataStorageNameEnum.PostData.value` [skip ci] --- ktoolbox/action/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) )