1
0
Fork 0

make optional params properly optional

This commit is contained in:
Sean Sube 2024-02-17 15:24:47 -06:00
parent b358d3b9fe
commit 2449e347f0
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 16 additions and 4 deletions

View File

@ -473,9 +473,21 @@ def get_request_params(
data = get_request_data() data = get_request_data()
device, params, size = pipeline_from_json(server, data, default_pipeline) device, params, size = pipeline_from_json(server, data, default_pipeline)
border = None
if "border" in data:
border = build_border(data["border"]) border = build_border(data["border"])
upscale = None
if "upscale" in data:
upscale = build_upscale(data["upscale"]) upscale = build_upscale(data["upscale"])
highres = None
if "highres" in data:
highres = build_highres(data["highres"]) highres = build_highres(data["highres"])
experimental = None
if "experimental" in data:
experimental = build_experimental(data["experimental"]) experimental = build_experimental(data["experimental"])
return RequestParams( return RequestParams(