Commit fbe08c77 authored by Christophe Benz's avatar Christophe Benz

Disable filtering of base variables and "correctives" regles

parent beeba3ad
......@@ -185,11 +185,11 @@ def get_errors(base_variables, saisie_variables):
)))
def get_formula_source(formula_name):
# not core.has_tag('base', formula_name) and \
# 'corrective' not in definition_by_variable_name.get(formula_name, {}).get('regle_tags', []) \
sanitized_name = core.sanitized_variable_name(formula_name)
return source_by_formula_name[sanitized_name] \
if sanitized_name in source_by_formula_name and \
not core.has_tag('base', formula_name) and \
'corrective' not in definition_by_variable_name.get(formula_name, {}).get('regle_tags', []) \
if sanitized_name in source_by_formula_name \
else 'def {}(): return 0\n'.format(sanitized_name)
def should_be_in_formulas_file(variable_name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment