Skip to content

Commit

Permalink
fix deadloop
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed Dec 7, 2018
1 parent eca04b4 commit 086fde1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rltk/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def filter(self, condition: Callable, n: int = 10):
if counter >= n:
break
if condition(r):
counter += 1
yield r

def __iter__(self):
Expand Down

0 comments on commit 086fde1

Please sign in to comment.