Skip to content

Commit

Permalink
last minute optimisations for v0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Oct 29, 2015
1 parent 3a12ca6 commit ea6924e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/reverse/heuristics/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ def verify(self, _record_type, members):
# ignore the field in that case.
continue
counter = Counter(values)
print 'field: %s values: %s' % (field.name, counter)
# print 'field: %s values: %s' % (field.name, counter)
lines.append('# field: %s values: %s' % (field.name, counter))
return lines
2 changes: 2 additions & 0 deletions haystack/reverse/heuristics/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def _iterate_contexts(self):
def _iterate_records(self, _context):
""" Override to change the list of record for this _context """
for _record in _context.listStructures():
if _record.get_reverse_level() >= self.get_reverse_level():
continue
yield _record

def _iterate_fields(self, _context, _record):
Expand Down

0 comments on commit ea6924e

Please sign in to comment.