Update block_wrapper.py
All checks were successful
CI Workflow / Testing the Block (push) Successful in 8s
CI Workflow / Containerize the Block (push) Successful in 48s

This commit is contained in:
admin user 2025-04-07 17:55:23 +00:00
parent d6bd8e6abc
commit f2d318832f

View File

@ -104,6 +104,10 @@ def construct_sql(input_data):
sql_template = sql_file.read() sql_template = sql_file.read()
for key, value in input_data.items(): for key, value in input_data.items():
placeholder = f"${key}" placeholder = f"${key}"
if value is None:
replacement = "NULL"
if isinstance(value, str): if isinstance(value, str):
value = f"'{value}'" value = f"'{value}'"
elif isinstance(value, bool): elif isinstance(value, bool):