mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-05 11:06:34 +00:00
perf: 优化自定义类型的冲突
This commit is contained in:
parent
f85daa088f
commit
a6ab886968
@ -8,7 +8,7 @@ class CustomTypes(BaseType):
|
||||
platforms = list(cls.get_custom_platforms())
|
||||
except Exception:
|
||||
return []
|
||||
types = [p.type for p in platforms]
|
||||
types = set([p.type for p in platforms])
|
||||
return [(t, t) for t in types]
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user