Commit 4065167afc749a053e90c8a403cc6d580a0696a4

Authored by Tomasz Bartosiak
1 parent ea719d88

Changing script -- possible re-iteration

semantics/management/commands/connect_noun_lexical_units.py
... ... @@ -22,6 +22,8 @@ def connect_nouns():
22 22 for entry in entries:
23 23 lus = LexicalUnit.objects.filter(base=entry.name, pos=u'rzeczownik')
24 24 for lu in lus:
25   - lu.entry = entry
26   - lu.save()
  25 + if lu.entry is None:
  26 + print lu.base, lu.sense
  27 + lu.entry = entry
  28 + lu.save()
27 29  
... ...