8000 Fix code style with black · codeguru42/go-capture-api@a3587be · GitHub
[go: up one dir, main page]

Skip to content

Commit a3587be

Browse files
committed
Fix code style with black
1 parent 956859b commit a3587be

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

main.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,25 @@
1111
app = FastAPI()
1212

1313

14-
@app.get('/health_check/')
14+
@app.get("/health_check/")
1515
def health_check():
1616
return {"message": "Healthy!"}
1717

1818

19-
@app.post('/capture/')
19+
@app.post("/capture/")
2020
def capture(image: Annotated[UploadFile, File()]):
2121
output_file = io.StringIO()
2222
process_image(image.file, output_file)
2323
output_file.seek(0)
2424
return {
25-
'sgf': output_file.read(),
26-
'image_filename': image.filename,
25+
"sgf": output_file.read(),
26+
"image_filename": image.filename,
2727
}
2828

2929

30-
@app.post('/capture_async/')
30+
@app.post("/capture_async/")
3131
def capture_async(
32-
image: Annotated[UploadFile, File()],
33-
fcm_registration_token: Annotated[str, Form()]
32+
image: Annotated[UploadFile, File()], fcm_registration_token: Annotated[str, Form()]
3433
):
3534
filename = Path(image.filename)
3635
output_path = settings.IMAGES_DIR / filename

0 commit comments

Comments
 (0)
0