Skip to content

Commit

Permalink
tableForm: fix parsing non-string values
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhidki committed Feb 26, 2025
1 parent 3458ede commit da5ea01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timApp/plugin/tableform/tableForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def save_workbook_to_memory(wb: Workbook) -> io.BytesIO:

def parse_row(rd: list[str | float | None], regex_filter: re.Pattern) -> None:
for i in range(len(rd)):
m = regex_filter.match(rd[i]) if rd[i] else None
m = regex_filter.match(str(rd[i])) if rd[i] is not None else None
if m:
val = m.group(0)
val = val.replace(" ", "")
Expand Down

0 comments on commit da5ea01

Please sign in to comment.