|
|
|
@ -221,7 +221,7 @@ class BaseLoader(File): |
|
|
|
|
if type(value) in (list, tuple): |
|
|
|
|
_value = value |
|
|
|
|
else: |
|
|
|
|
_value = split_csv(value) |
|
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
|
elif key in ("func", "function"): |
|
|
|
|
_key = "function" |
|
|
|
|
_value = value |
|
|
|
@ -230,19 +230,19 @@ class BaseLoader(File): |
|
|
|
|
if type(value) in (list, tuple): |
|
|
|
|
_value = value |
|
|
|
|
else: |
|
|
|
|
_value = split_csv(value) |
|
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
|
elif key == "items": |
|
|
|
|
_key = "items" |
|
|
|
|
if type(value) in (list, tuple): |
|
|
|
|
_value = value |
|
|
|
|
else: |
|
|
|
|
_value = split_csv(value) |
|
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
|
elif key == "tags": |
|
|
|
|
_key = "tags" |
|
|
|
|
if type(value) in (list, tuple): |
|
|
|
|
_value = value |
|
|
|
|
else: |
|
|
|
|
_value = split_csv(value) |
|
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
|
else: |
|
|
|
|
_key = key |
|
|
|
|
_value = smart_cast(value) |
|
|
|
|