Skip to content

Commit 6d9ec32

Browse files
committed
github.py: fix embarrassing bug in issues filter
To filter a list, use filter. Not map. -_-
1 parent fc3df6e commit 6d9ec32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def repo(self, org, repo):
2323
return GitHubIssues(self.issues(lambda item: item['repository_url'].endswith(f'/repos/{org}/{repo}')), max_results=self._max_results, token=self._token)
2424

2525
def issues(self, predicate=lambda x: True):
26-
return list(map(predicate, self._json['items']))
26+
return list(filter(predicate, self._json['items']))
2727

2828
def load(self, filepath):
2929
with open(filepath) as f:

0 commit comments

Comments
 (0)