aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hedy Li <[email protected]>2020-10-22 07:09:46 +0000
committerGravatar Hedy Li <[email protected]>2020-10-22 07:09:46 +0000
commit2cbc18408677d92d53f484fa71560e96555557cf (patch)
treec6213a363f1fdc47b5a789f83f40e76945085564
parentimprove message when user not found (diff)
parentPR #508 Hackstats: fix KeyError on invalid PRs (diff)
Merge branch 'master' of https://github.com/python-discord/seasonalbot into hackstats
-rw-r--r--bot/exts/halloween/hacktoberstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py
index e8ed1d1b..9ae9c227 100644
--- a/bot/exts/halloween/hacktoberstats.py
+++ b/bot/exts/halloween/hacktoberstats.py
@@ -314,7 +314,7 @@ class HacktoberStats(commands.Cog):
# if the PR has 'invalid' or 'spam' labels, the PR must be
# either merged or approved for it to be included
if HacktoberStats._has_label(item, ["invalid", "spam"]):
- if not await HacktoberStats._is_accepted(item):
+ if not await HacktoberStats._is_accepted(itemdict):
continue
# PRs before oct 3 no need to check for topics