Skip to content

Commit 0213f43

Browse files
committed
fix(coda): preserve explicit false for disable_parsing
Use 'is not None' check so callers can pass disable_parsing=false explicitly. The previous truthiness check silently dropped false, making the parameter unsettable from a non-default value.
1 parent c2b122f commit 0213f43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

coda/coda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext):
586586
body["keyColumns"] = inputs.get("key_columns")
587587

588588
params = {}
589-
if inputs.get("disable_parsing"):
589+
if inputs.get("disable_parsing") is not None:
590590
params["disableParsing"] = str(inputs.get("disable_parsing")).lower()
591591

592592
headers = get_auth_headers(context)
@@ -618,7 +618,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext):
618618
body = {"row": {"cells": cells}}
619619

620620
params = {}
621-
if inputs.get("disable_parsing"):
621+
if inputs.get("disable_parsing") is not None:
622622
params["disableParsing"] = str(inputs.get("disable_parsing")).lower()
623623

624624
headers = get_auth_headers(context)

0 commit comments

Comments
 (0)