We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93bac4 commit 0567ea9Copy full SHA for 0567ea9
main.py
@@ -37,8 +37,7 @@ def capture_async(
37
fcm_registration_token: Annotated[str, Form()],
38
to_play: Annotated[Color, Form()] = Color.BLACK,
39
):
40
- filename = Path(image.filename)
41
- output_path = settings.IMAGES_DIR / filename
+ output_path = settings.IMAGES_DIR / image.filename
42
with output_path.open("wb") as output_file:
43
output_file.write(image.file.read())
44
process_image_task.delay(
0 commit comments