Skip to content

Commit

Permalink
Always pass dates to the GitHub search API
Browse files Browse the repository at this point in the history
Otherwise we get a malformed search query.
  • Loading branch information
ghickman committed Nov 13, 2023
1 parent 131420d commit db6dd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/github/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def pr_queue(ctx, org, date, days_threshold):
def pr_throughput(ctx, org, date, days):
"""PRs opened in the last number of days given"""
end = date.date()
start = date - timedelta(days=days)
start = end - timedelta(days=days)

prs = api.prs_opened_in_the_last_N_days(org, start, end)

Expand Down

0 comments on commit db6dd21

Please sign in to comment.