Skip to content

Commit bdd41dd

Browse files
committed
fixed json handling issue
1 parent 9e7332f commit bdd41dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystackql/stackql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _run_query(self, query, custom_auth=None, env_vars=None):
210210
# local_params.insert(1, shlex.quote(query))
211211
script_path = None
212212

213-
if sys.os.platform == "Windows":
213+
if self.platform.startswith("Windows"):
214214
# Escape double quotes and wrap in double quotes for Windows
215215
escaped_query = query.replace('"', '\\"') # Escape double quotes properly
216216
safe_query = f'"{escaped_query}"'

0 commit comments

Comments
 (0)