fix: import account failed

pull/14202/head
wangruidong 2024-09-19 14:37:59 +08:00 committed by Bryan
parent b53968ac00
commit d34b65890f
1 changed files with 1 additions and 1 deletions

View File

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