From d9908ba96f55c12eabd1b6efc4efa21e8a7a87ea Mon Sep 17 00:00:00 2001 From: Jake Bowhay Date: Sun, 11 May 2025 19:18:44 +0100 Subject: [PATCH] fix rstrip --- devstats/reports/issue_time_to_response.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devstats/reports/issue_time_to_response.md b/devstats/reports/issue_time_to_response.md index 909cd11..9e0143d 100644 --- a/devstats/reports/issue_time_to_response.md +++ b/devstats/reports/issue_time_to_response.md @@ -28,8 +28,8 @@ for iss in commented_issues: # This can happen e.g. when a user deletes their GH acct user = "UNKNOWN" first_commenters.append(user) - dt = (np.datetime64(e["node"]["createdAt"]).rstrip("Z") - - np.datetime64(iss["createdAt"]).rstrip("Z")) + dt = (np.datetime64(e["node"]["createdAt"].rstrip("Z")) + - np.datetime64(iss["createdAt"].rstrip("Z"))) time_to_first_comment.append(dt.astype("m8[m]")) break # Only want the first commenter time_to_first_comment = np.array(time_to_first_comment) # in minutes