Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankeenan committed Dec 30, 2024
1 parent 24c4639 commit 9490fab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def show_image() -> tuple[Response, int]:

dither = request.form.get('dither', 'true') in ['true', '1']

image_settings = dict([(i, locals()[i]) for i in ('mode', 'dither', 'rotate', 'resize', 'background')])
loc = locals()
image_settings = {i: loc[i] for i in ('mode', 'dither', 'rotate', 'resize', 'background')}
logging.debug(f'Creating an image with the following settings: {json.dumps(image_settings)}')
image_to_display = resize_img(image, dither, rotate, resize, background, DISPLAY_RESOLUTION)

Expand Down

0 comments on commit 9490fab

Please sign in to comment.