-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comma escape #1755
base: main
Are you sure you want to change the base?
Comma escape #1755
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one little thing. Oh, and the fact its failing tests.
Might need to use some # noqa: T201
comments on the lines with print statements.
@@ -956,7 +960,10 @@ def send_notification(service_id, template_id): | |||
values = [] | |||
for k, v in session["placeholders"].items(): | |||
keys.append(k) | |||
values.append(v) | |||
print(hilite(f"value: {v} type: {type(v)}")) | |||
value_quotes = '"' + v + '"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value_quotes = f'"{v}"'
Would be more efficient/cleaner.
Change adding quotes to the values that users enter when sending a one-off. These values will go to the api intact with any commas. However, the issue in the api PR still needs to be addressed to figure out why the text message isn't going through.