mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 03:49:00 +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())
|
platforms = list(cls.get_custom_platforms())
|
||||||
except Exception:
|
except Exception:
|
||||||
return []
|
return []
|
||||||
types = [p.type for p in platforms]
|
types = set([p.type for p in platforms])
|
||||||
return [(t, t) for t in types]
|
return [(t, t) for t in types]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user