Commit 3d9ff8f2bd8fc936b04025b0acf611c13f373a32
1 parent
1a0dd6ea
Another reflex validation bugfix.
Showing
1 changed file
with
6 additions
and
2 deletions
semantics/validation.py
... | ... | @@ -94,10 +94,14 @@ def schemas_reflex_agreed(lemma, frame): |
94 | 94 | complements = frame.complements.all() |
95 | 95 | lexical_units = frame.lexical_units.all() |
96 | 96 | for lex_unit in lexical_units: |
97 | + lex_unit_agree = True | |
97 | 98 | for schema in lemma.frames.all(): |
98 | 99 | if not schema_lex_unit_reflex_agree(lex_unit, schema, complements): |
99 | - return False | |
100 | - return True | |
100 | + lex_unit_agree = False | |
101 | + break | |
102 | + if lex_unit_agree: | |
103 | + return True | |
104 | + return False | |
101 | 105 | |
102 | 106 | def schema_lex_unit_reflex_agree(lexical_unit, schema, complements): |
103 | 107 | if complements.filter(realizations__frame=schema).exists(): |
... | ... |