fix: image generation broken by config persistence

This commit is contained in:
Jun Siang Cheah 2024-05-17 13:52:48 +08:00
parent 6dedf9885f
commit 51a41c8db4

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: