🚨 Merged last with-statement

This commit is contained in:
Mawoka
2022-04-16 11:57:02 +02:00
parent bd23036414
commit 419f2a9906
+2 -3
View File
@@ -14,9 +14,8 @@ settings = settings()
async def _download_image(url: str) -> bytes:
async with ClientSession() as session:
async with session.get(url) as resp:
return await resp.read()
async with ClientSession() as session, session.get(url) as resp:
return await resp.read()
async def import_quiz(quiz_id: str, user: User) -> Quiz | str: