From 51a41c8db4a35b99b9bfb3c5595986dfdf5501e9 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Fri, 17 May 2024 13:52:48 +0800 Subject: [PATCH] fix: image generation broken by config persistence --- backend/apps/images/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/images/main.py b/backend/apps/images/main.py index 1c309439d..4419ccf19 100644 --- a/backend/apps/images/main.py +++ b/backend/apps/images/main.py @@ -397,7 +397,7 @@ def generate_image( user=Depends(get_current_user), ): - width, height = tuple(map(int, app.state.config.IMAGE_SIZE).split("x")) + width, height = tuple(map(int, app.state.config.IMAGE_SIZE.split("x"))) r = None try: