Skip to content

Commit

Permalink
🔖 Pre Release 0.1.0a4
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi committed Aug 11, 2024
1 parent ee63f00 commit c2c7d30
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_all4one/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def upload_file(

sha256 = get_sha256(data)
extensions = get_file_info(data[:128]).extensions
filename = f"{sha256}.{extensions[0] if extensions else ''}"
filename = f"{sha256}{'.'+extensions[0] if extensions else ''}"
path = str(FILE_PATH / filename)
async with await open_file(path, "wb") as f:
await f.write(data)
Expand Down
Loading

0 comments on commit c2c7d30

Please sign in to comment.