diff --git a/GeneralApp/funcs_options.py b/GeneralApp/funcs_options.py index 295ecec..4450619 100644 --- a/GeneralApp/funcs_options.py +++ b/GeneralApp/funcs_options.py @@ -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