Skip to content

Commit e486c35

Browse files
committed
Remove unnecessary class object
1 parent b702d1b commit e486c35

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

github_activity/github_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def get_activity(
216216
qu.request()
217217
query_data.append(qu.data)
218218
# Collect bot users from each query
219-
all_bot_users.update(qu.bot_users)
219+
all_bot_users.update(qu.data.attrs.get("bot_users", set()))
220220

221221
query_data = (
222222
pd.concat(query_data).drop_duplicates(subset=["id"]).reset_index(drop=True)

github_activity/graphql.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,7 @@ def is_bot(user_dict):
293293

294294
# Create a dataframe of the issues and/or PRs
295295
self.data = pd.DataFrame(self.issues_and_or_prs)
296-
# Store bot users in DataFrame attrs and as instance attribute
297296
self.data.attrs["bot_users"] = bot_users
298-
self.bot_users = bot_users
299297

300298
# Add some extra fields
301299
def get_login(user):

0 commit comments

Comments
 (0)