Skip to content

Commit

Permalink
windows doesn't like unterminated string literal release
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcarbon authored Sep 4, 2024
1 parent cbf3731 commit 1b6efb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions affinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def to_parquet(self, path, engine="duckdb", **kwargs):
kv_metadata = []
for k, v in self.metadata.items():
if isinstance(v, str) and "'" in v:
# must escape single quotes
kv_metadata.append(f"{k}: '{v.replace("'", "''")}'")
_v = {v.replace("'", "''")} # must escape single quotes
kv_metadata.append(f"{k}: '{_v}'")
else:
kv_metadata.append(f"{k}: '{v}'")
self.sql(f"""
Expand Down

0 comments on commit 1b6efb1

Please sign in to comment.