Skip to content

Commit

Permalink
Merge pull request #3473 from mrmundt/bwom
Browse files Browse the repository at this point in the history
BWOM Bug Fix: Do Not Show PRs
  • Loading branch information
mrmundt authored Feb 12, 2025
2 parents 04bd416 + c57ea76 commit e43c075
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/admin/bwom.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_random_open_issues(repository, number_to_return):
repo = gh.get_repo(repository)
# Get all open issues
open_issues = repo.get_issues(state='open')
open_issues_list = [issue for issue in open_issues]
open_issues_list = [issue for issue in open_issues if "pull" not in issue.html_url]

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

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

print("Spinning the Big Wheel of Misfortune...\n")
print_big_wheel()
Expand Down

0 comments on commit e43c075

Please sign in to comment.