1
0
Fork 0

fix(api): use correct params for default outpainting borders (#345)

This commit is contained in:
Sean Sube 2023-04-20 22:33:18 -05:00
parent b85a8aa868
commit c7aea34b28
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 12 additions and 12 deletions

View File

@ -153,30 +153,30 @@ def border_from_request() -> Border:
left = get_and_clamp_int( left = get_and_clamp_int(
request.args, request.args,
"left", "left",
get_config_value("width"), get_config_value("left"),
get_config_value("width", "max"), get_config_value("left", "max"),
get_config_value("width", "min"), get_config_value("left", "min"),
) )
right = get_and_clamp_int( right = get_and_clamp_int(
request.args, request.args,
"right", "right",
get_config_value("width"), get_config_value("right"),
get_config_value("width", "max"), get_config_value("right", "max"),
get_config_value("width", "min"), get_config_value("right", "min"),
) )
top = get_and_clamp_int( top = get_and_clamp_int(
request.args, request.args,
"top", "top",
get_config_value("width"), get_config_value("top"),
get_config_value("height", "max"), get_config_value("top", "max"),
get_config_value("height", "min"), get_config_value("top", "min"),
) )
bottom = get_and_clamp_int( bottom = get_and_clamp_int(
request.args, request.args,
"bottom", "bottom",
get_config_value("width"), get_config_value("bottom"),
get_config_value("height", "max"), get_config_value("bottom", "max"),
get_config_value("height", "min"), get_config_value("bottom", "min"),
) )
return Border(left, right, top, bottom) return Border(left, right, top, bottom)