make optional params properly optional
This commit is contained in:
parent
b358d3b9fe
commit
2449e347f0
|
@ -473,9 +473,21 @@ def get_request_params(
|
|||
data = get_request_data()
|
||||
|
||||
device, params, size = pipeline_from_json(server, data, default_pipeline)
|
||||
|
||||
border = None
|
||||
if "border" in data:
|
||||
border = build_border(data["border"])
|
||||
|
||||
upscale = None
|
||||
if "upscale" in data:
|
||||
upscale = build_upscale(data["upscale"])
|
||||
|
||||
highres = None
|
||||
if "highres" in data:
|
||||
highres = build_highres(data["highres"])
|
||||
|
||||
experimental = None
|
||||
if "experimental" in data:
|
||||
experimental = build_experimental(data["experimental"])
|
||||
|
||||
return RequestParams(
|
||||
|
|
Loading…
Reference in New Issue