Исправления GUI, кэша и парсинга ввода#2
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| cleaned = cleaned.replace(',', '.') | ||
| if cleaned.count('.') > 1: | ||
| parts = cleaned.split('.') | ||
| cleaned = ''.join(parts[:-1]) + '.' + parts[-1] |
There was a problem hiding this comment.
Parse multi-group amounts without adding phantom decimals
The new parse_amount normalization treats any string with more than one separator as if the last separator were a decimal point (cleaned = ''.join(parts[:-1]) + '.' + parts[-1]), so an amount like "1.234.567"/"1,234,567" is parsed as 1234.567 instead of 1234567. This silently shrinks large integer inputs by three orders of magnitude rather than rejecting them, so conversions for million-scale values entered with standard thousand grouping will be wrong.
Useful? React with 👍 / 👎.
Что сделано
Проверка