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

fix: image generation broken by config persistence
This commit is contained in:
Timothy Jaeryang Baek 2024-05-16 20:39:21 -10:00 committed by GitHub
commit a2933bf89d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: