From db6dd21fbf0109cf35b07a1dd7d39e683b147fe6 Mon Sep 17 00:00:00 2001 From: George Hickman Date: Mon, 13 Nov 2023 16:05:03 +0000 Subject: [PATCH] Always pass dates to the GitHub search API Otherwise we get a malformed search query. --- metrics/github/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/github/cli.py b/metrics/github/cli.py index 6c6122ad..7e969997 100644 --- a/metrics/github/cli.py +++ b/metrics/github/cli.py @@ -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)