boardType fixed

This commit is contained in:
Profitroll 2022-10-05 15:06:08 +02:00
parent 3a23c058c3
commit 5c013dd38f
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ def board_arrival(accessId: str,
payload[str(var)] = val payload[str(var)] = val
elif str(var) == "boardType": elif str(var) == "boardType":
if val != None: if val != None:
payload["type"] = val payload["type"] = val.upper()
elif str(var) not in ["json", "headers", "payload"]: elif str(var) not in ["json", "headers", "payload"]:
if val != None: if val != None:
payload[str(var)] = val payload[str(var)] = val

View File

@ -87,7 +87,7 @@ def board_departure(accessId: str,
payload[str(var)] = val payload[str(var)] = val
elif str(var) == "boardType": elif str(var) == "boardType":
if val != None: if val != None:
payload["type"] = val payload["type"] = val.upper()
elif str(var) not in ["json", "headers", "payload"]: elif str(var) not in ["json", "headers", "payload"]:
if val != None: if val != None:
payload[str(var)] = val payload[str(var)] = val