Skip to content
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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Comma escape #1755

wants to merge 8 commits into from

Conversation

A-Shumway42
Copy link
Member

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.

Copy link
Contributor

@xlorepdarkhelm xlorepdarkhelm left a 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 + '"'
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants