0.5.22 fix get_options_by_opt_types
This commit is contained in:
@@ -14,7 +14,7 @@ def get_options_by_opt_types(opt_types, only_vals=False, w_prefix=False):
|
|||||||
res_Dict = {}
|
res_Dict = {}
|
||||||
for item in opts:
|
for item in opts:
|
||||||
val = item['value']
|
val = item['value']
|
||||||
if w_prefix:
|
if w_prefix and item['prefix']:
|
||||||
val = item['prefix'] + val
|
val = item['prefix'] + val
|
||||||
res_Dict.update({item['opt_type']: val})
|
res_Dict.update({item['opt_type']: val})
|
||||||
return res_Dict
|
return res_Dict
|
||||||
|
|||||||
Reference in New Issue
Block a user