Commit e5f0e05e1aee5a261516cebe2cbd91f85822359b

Authored by janek37
1 parent 6f8272d1

formy podstawowe przy złych imiesłowach - poprawka

dictionary/management/commands/wrong_derivatives.py
... ... @@ -56,10 +56,9 @@ def wrong_derivatives():
56 56 for ending in endings6p:
57 57 wrong_participles.add((lip.root + ending.string + u'szy', l.entry))
58 58  
59   - wrong_participles_forms = set(form for form, entry in wrong_participles)
60   - wrong_participles_forms -= set(LexemeForm.objects.values_list('form', flat=True))
  59 + existing_forms = set(LexemeForm.objects.values_list('form', flat=True))
61 60 wrong_participles = sorted(
62   - (form, entry) for form, entry in wrong_participles if form not in wrong_participles_forms)
  61 + (form, entry) for form, entry in wrong_participles if form not in existing_forms)
63 62 for p in wrong_participles:
64 63 uniprint('%s, %s' % p)
65 64  
... ...