fix: import account failed

This commit is contained in:
wangruidong
2024-09-19 14:37:59 +08:00
committed by Bryan
parent b53968ac00
commit d34b65890f

View File

@@ -108,7 +108,7 @@ class BaseFileParser(BaseParser):
if not matched: if not matched:
return v return v
obj_name, obj_id = matched.groups() obj_name, obj_id = matched.groups()
if len(obj_id) < 36: if obj_id.isdigit():
obj_id = int(obj_id) obj_id = int(obj_id)
return {'pk': obj_id, 'name': obj_name} return {'pk': obj_id, 'name': obj_name}