Skip to content

Commit

Permalink
Format python script
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Monahan committed Sep 26, 2024
1 parent 654c024 commit 83812a8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scripts/sql_to_wasm_shell_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,17 @@

for statement in statements:
trimmed = statement.strip()
no_hyphens = trimmed.replace('-','%2D')
no_hyphens = trimmed.replace('-', '%2D')
no_spaces = no_hyphens.replace('\n',' ').replace(' ', '-')
encoded = no_spaces.replace(',','%2C').replace('=','%3D').replace(':','%3A').replace(r'/','%2F').replace('%2D',' ')
encoded = (
no_spaces.replace(',','%2C')
.replace('=','%3D')
.replace(':','%3A')
.replace(r'/','%2F')
.replace('%2D',' ')
)
encoded_statements.append(encoded)

combined = shell_link_stub + '~,'.join(encoded_statements)

print(combined)
print(combined)

0 comments on commit 83812a8

Please sign in to comment.