0.5.22 fix get_options_by_opt_types

This commit is contained in:
SDE
2024-07-19 01:26:24 +03:00
parent 8e12c7e515
commit 1583da5816

View File

@@ -14,7 +14,7 @@ def get_options_by_opt_types(opt_types, only_vals=False, w_prefix=False):
res_Dict = {}
for item in opts:
val = item['value']
if w_prefix:
if w_prefix and item['prefix']:
val = item['prefix'] + val
res_Dict.update({item['opt_type']: val})
return res_Dict