Skip to content

Commit b80e5bf

Browse files
committed
Rename variable to be more descriptive
1 parent d3be166 commit b80e5bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go_capture/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ def capture(request):
1717
image = cv2.imdecode(image_data, cv2.IMREAD_COLOR)
1818
board = perspective.get_grid(image)
1919
black, white = find_stones.find_stones(board)
20-
file = io.StringIO()
21-
make_sgf(file, black, white)
22-
file.seek(0)
20+
output_file = io.StringIO()
21+
make_sgf(output_file, black, white)
22+
output_file.seek(0)
2323
filename = Path(image_file.name).stem
2424
return FileResponse(
25-
file.read(),
25+
output_file.read(),
2626
status=201,
2727
filename=f'${filename}.sgf',
2828
as_attachment=True,

0 commit comments

Comments
 (0)