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

[2.0] Fix storing floats in Redis #477

Merged
merged 1 commit into from
Jan 28, 2019
Merged

[2.0] Fix storing floats in Redis #477

merged 1 commit into from
Jan 28, 2019

Conversation

driesvints
Copy link
Member

Redis will only accept floats with a point decimal sign and not a comma decimal sign. The sign is determined by the system's locale setting (LC_NUMERIC) and if set to one that prefers a comma will cause Redis to store the float as a string instead of a comma.

This change will make sure that before a float is stored it's always made sure that any comma is changed to a point. This was already done in some other parts of the system.

Fixes #371

@taylorotwell
Copy link
Member

Has conflicts.

@driesvints
Copy link
Member Author

@taylorotwell fixed

Redis will only accept floats with a point decimal sign and not a comma decimal sign. The sign is determined by the system's locale setting (LC_NUMERIC) and if set to one that prefers a comma will cause Redis to store the float as a string instead of a comma.

This change will make sure that before a float is stored it's always made sure that any comma is changed to a point. This was already done in some other parts of the system.

Fixes #371
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.

2 participants