Skip to content

Conversation

@mgaeta
Copy link
Contributor

@mgaeta mgaeta commented Oct 29, 2021

Replace % string interpolation with f-strings.

@mgaeta mgaeta requested a review from a team October 29, 2021 23:05
exact_query = ('name="%s"' % (query)).encode("utf-8")
fuzzy_query = ('name~"%s"' % (query)).encode("utf-8")
exact_query = f'name="{query}"'.encode()
fuzzy_query = f'name~"{query}"'.encode()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you not need to specify utf-8?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the default w/ no parameters is utf-8

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I didn't even notice this. One of the commit hooks removed the parameter.

@mgaeta mgaeta merged commit 4aef3de into master Oct 29, 2021
@mgaeta mgaeta deleted the feat/api-2202-slack-digest-4 branch October 29, 2021 23:28
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants