Commit e9e22700 authored by Michal Čihař's avatar Michal Čihař

Coding style

parent 2cfbae07
...@@ -220,7 +220,7 @@ class UnitManager(models.Manager): ...@@ -220,7 +220,7 @@ class UnitManager(models.Manager):
# Try to find at least configured number of similar strings, remove up to 4 words # Try to find at least configured number of similar strings, remove up to 4 words
while len(ret) < settings.SIMILAR_MESSAGES and cnt > 0 and len(terms) - cnt < 4: while len(ret) < settings.SIMILAR_MESSAGES and cnt > 0 and len(terms) - cnt < 4:
for search in itertools.combinations(terms, cnt): for search in itertools.combinations(terms, cnt):
ret = ret.union(self.search(' '.join(search), True, False, False, True)) ret = ret.union(self.search(' '.join(search), True, False, False, True))
cnt -= 1 cnt -= 1
return self.filter( return self.filter(
......
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