Commit beeba3ad authored by Christophe Benz's avatar Christophe Benz

Make all base variables return 0

parent 24087376
This diff is collapsed.
......@@ -188,6 +188,7 @@ def get_errors(base_variables, saisie_variables):
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', []) \
else 'def {}(): return 0\n'.format(sanitized_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