diff options
author | 2019-12-03 22:19:19 -0800 | |
---|---|---|
committer | 2019-12-03 22:19:19 -0800 | |
commit | 395866c47bd7facd1fce58fccdcd85de8fdf3a9d (patch) | |
tree | 15dc5c0860b2180d682f096df061360f468a5897 | |
parent | Merge pull request #308 from python-discord/dependabot/pip/pillow-6.2.0 (diff) | |
parent | Merge 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.py | 2 |
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}" ) |