Commit a0883c13aa4479aabb3dc33bfa1cb430c6437ee5

Authored by janek37
1 parent 6fcb679e

poprawki do generowania rdzenia liczebników

Showing 1 changed file with 2 additions and 1 deletions
dictionary/models.py
... ... @@ -737,7 +737,8 @@ def get_root(basic_form, pattern, gender, use_pattern_ending=False):
737 737 elif pattern.type.lexical_class.symbol == 'v':
738 738 basic_endings = pattern.endings.filter(base_form_label__symbol='5')
739 739 elif pattern.type.lexical_class.symbol == 'num':
740   - basic_endings = pattern.endings.filter(base_form_label__symbol='1')
  740 + basic_endings = pattern.endings.filter(
  741 + base_form_label__symbol__in=('1', '1,z1'))
741 742 else:
742 743 use_pattern_ending = True
743 744 if use_pattern_ending:
... ...