aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2019-12-03 22:19:19 -0800
committerGravatar GitHub <[email protected]>2019-12-03 22:19:19 -0800
commit395866c47bd7facd1fce58fccdcd85de8fdf3a9d (patch)
tree15dc5c0860b2180d682f096df061360f468a5897
parentMerge pull request #308 from python-discord/dependabot/pip/pillow-6.2.0 (diff)
parentMerge branch 'master' into exclude-draft-prs (diff)
Merge pull request #305 from python-discord/exclude-draft-prs
Ignore Draft PRs in .hackstats
-rw-r--r--bot/seasons/halloween/hacktoberstats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/halloween/hacktoberstats.py b/bot/seasons/halloween/hacktoberstats.py
index ab8d865c..b7b4122d 100644
--- a/bot/seasons/halloween/hacktoberstats.py
+++ b/bot/seasons/halloween/hacktoberstats.py
@@ -227,6 +227,7 @@ class HacktoberStats(commands.Cog):
not_label = "invalid"
action_type = "pr"
is_query = f"public+author:{github_username}"
+ not_query = "draft"
date_range = f"{CURRENT_YEAR}-10-01T00:00:00%2B14:00..{CURRENT_YEAR}-10-31T23:59:59-11:00"
per_page = "300"
query_url = (
@@ -234,6 +235,7 @@ class HacktoberStats(commands.Cog):
f"-label:{not_label}"
f"+type:{action_type}"
f"+is:{is_query}"
+ f"+-is:{not_query}"
f"+created:{date_range}"
f"&per_page={per_page}"
)