Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 7dc8645

Browse files
committed
average issue close time
1 parent 8bac487 commit 7dc8645

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

scripts/average_issue_close.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SELECT avg((
2+
CASE WHEN issue.closed_at IS NULL THEN datetime('now')
3+
ELSE issue.closed_at
4+
END
5+
) - issue.created_at
6+
) AS "average"
7+
FROM issue;

scripts/parse_github.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
from datetime import timezone
3535

3636

37-
print("Created new SQL Base")
3837
SQLBase = declarative_base()
3938

4039
# %% Main state configuration
@@ -727,7 +726,7 @@ def get_pull(self, pull: gh.PullRequest.PullRequest) -> int:
727726
diff_hunk=comment.diff_hunk,
728727
commit=self.get_commit(comment.commit_id),
729728
original_commit=self.get_commit(
730-
comment.original_commit
729+
comment.original_commit_id
731730
),
732731
)
733732

0 commit comments

Comments
 (0)