소스 검색

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: