Skip to content

Commit e43c075

Browse files
authored
Merge pull request #3473 from mrmundt/bwom
BWOM Bug Fix: Do Not Show PRs
2 parents 04bd416 + c57ea76 commit e43c075

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/admin/bwom.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_random_open_issues(repository, number_to_return):
5050
repo = gh.get_repo(repository)
5151
# Get all open issues
5252
open_issues = repo.get_issues(state='open')
53-
open_issues_list = [issue for issue in open_issues]
53+
open_issues_list = [issue for issue in open_issues if "pull" not in issue.html_url]
5454

5555
# Randomly select the specified number of issues
5656
random_issues = random.sample(
@@ -108,6 +108,7 @@ def main():
108108
sys.exit(1)
109109

110110
repository = sys.argv[1]
111+
num_issues = 5
111112
if len(sys.argv) == 3:
112113
try:
113114
num_issues = int(sys.argv[2])
@@ -118,9 +119,6 @@ def main():
118119
"*** ERROR: You did something weird when declaring the number of issues. Defaulting to 5.\n"
119120
f"(For posterity, this is the error that was returned: {e})\n"
120121
)
121-
num_issues = 5
122-
else:
123-
num_issues = 5
124122

125123
print("Spinning the Big Wheel of Misfortune...\n")
126124
print_big_wheel()

0 commit comments

Comments
 (0)