Update base.py
This commit is contained in:
parent
3d3ceeab91
commit
537615e582
@ -26,7 +26,9 @@ class MissionParam:
|
|||||||
elif self.cls == int:
|
elif self.cls == int:
|
||||||
return int(val)
|
return int(val)
|
||||||
elif self.cls == list:
|
elif self.cls == list:
|
||||||
|
if type(val) == str:
|
||||||
return [i.strip() for i in val.split(',')]
|
return [i.strip() for i in val.split(',')]
|
||||||
|
return val
|
||||||
elif issubclass(self.cls, Base):
|
elif issubclass(self.cls, Base):
|
||||||
if type(val) == str:
|
if type(val) == str:
|
||||||
data = store.get(self.cls, val)
|
data = store.get(self.cls, val)
|
||||||
|
Loading…
Reference in New Issue
Block a user