Skip to content

Commit

Permalink
fix: DataStorageNameEnum.PostData -> `DataStorageNameEnum.PostData.…
Browse files Browse the repository at this point in the history
…value`

[skip ci]
  • Loading branch information
Ljzd-PRO committed Nov 8, 2023
1 parent 3c9f4a3 commit 4eeaf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ktoolbox/action/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 4eeaf33

Please sign in to comment.