mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
fix(salary): skip Excel logical cells instead of importing them as numbers (#664)
* fix(salary): skip Excel logical cells instead of importing numbers * test: skip Excel CLI case when openpyxl is unavailable * changelog: place the #664 entry under [Unreleased] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
3 files changed
+62
No files matched your search
@@ -68,6 +68,8 @@ def _finite_float(value):
|
||||
|
||||
def parse_numeric_cell(value):
|
||||
"""Parse numeric Excel values, including localized string cells."""
|
||||
if isinstance(value, bool):
|
||||
raise ValueError("not numeric")
|
||||
if isinstance(value, (int, float)):
|
||||
return _finite_float(value)
|
||||
if not isinstance(value, str):
|
||||
|
||||
Reference in new issue
Block a user