mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-25 14:32:05 +00:00
fix: 修复 xslx 提交数字类型报错
This commit is contained in:
parent
8b951ce12c
commit
726fd94f65
@ -57,6 +57,8 @@ class BaseFileParser(BaseParser):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _replace_chinese_quote(s):
|
def _replace_chinese_quote(s):
|
||||||
|
if not isinstance(s, str):
|
||||||
|
return s
|
||||||
trans_table = str.maketrans({
|
trans_table = str.maketrans({
|
||||||
'“': '"',
|
'“': '"',
|
||||||
'”': '"',
|
'”': '"',
|
||||||
|
Loading…
Reference in New Issue
Block a user