Fixed missing await
This commit is contained in:
parent
6be51c5aaa
commit
a5cd6a215f
@ -127,7 +127,7 @@ async def photo_upload(
|
|||||||
async with aiofiles.open(
|
async with aiofiles.open(
|
||||||
path.join("data", "users", current_user.user, "albums", album, filename), "wb"
|
path.join("data", "users", current_user.user, "albums", album, filename), "wb"
|
||||||
) as f:
|
) as f:
|
||||||
f.write(await file.read())
|
await f.write(await file.read())
|
||||||
|
|
||||||
file_hash = await get_phash(
|
file_hash = await get_phash(
|
||||||
path.join("data", "users", current_user.user, "albums", album, filename)
|
path.join("data", "users", current_user.user, "albums", album, filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user