File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 repository (owner : " _REPO_OWNER_" , name : " _REPO_NAME_" ) {
3- issues (first : 100 , filterBy : {since : " 2022 -01-01T00:00:00Z" }) {
3+ issues (first : 100 , filterBy : {since : " 2020 -01-01T00:00:00Z" }) {
44 totalCount
55 edges {
66 cursor
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ A snapshot of the development on the NumPy project in the past month
5151%than specified manually
5252
5353``` {code-cell} ipython3
54- query_date = np.datetime64("2022 -01-01 00:00:00")
54+ query_date = np.datetime64("2020 -01-01 00:00:00")
5555
5656# Load data
5757with open("../_data/issues.json", "r") as fh:
@@ -139,7 +139,12 @@ first_commenters = []
139139for iss in newly_created_day_old:
140140 for e in iss["timelineItems"]["edges"]:
141141 if e["node"]["__typename"] == "IssueComment":
142- first_commenters.append(e["node"]["author"]["login"])
142+ try:
143+ user = e["node"]["author"]["login"]
144+ except TypeError as err:
145+ # This can happen e.g. when a user deletes their GH acct
146+ user = "UNKNOWN"
147+ first_commenters.append(user)
143148 break # Only want the first commenter
144149
145150# TODO: Update IssueComment query to include:
You can’t perform that action at this time.
0 commit comments