浏览代码

Merge pull request #2328 from cheahjs/fix/image-gen-after-config-refac

fix: image generation broken by config persistence
Timothy Jaeryang Baek 11 月之前
父节点
当前提交
a2933bf89d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/apps/images/main.py

+ 1 - 1
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: