diff options
author | 2020-10-05 16:43:05 +0800 | |
---|---|---|
committer | 2020-10-05 16:43:05 +0800 | |
commit | 1e21838a47365d319e9c305ed2ff515d9f6392ce (patch) | |
tree | 6a7fa1f13dfd1249f503b197981185451569a3ce /bot/exts | |
parent | update logging query url (diff) |
update generation of query url
moved `author:` outside of `is_query` for better readability and understanding
Diffstat (limited to 'bot/exts')
-rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index af79ce7e..9d91a310 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -237,7 +237,7 @@ class HacktoberStats(commands.Cog): base_url = "https://api.github.com/search/issues?q=" not_labels = ("invalid", "spam") action_type = "pr" - is_query = f"public+author:{github_username}" + is_query = f"public" 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" @@ -247,6 +247,7 @@ class HacktoberStats(commands.Cog): f"+-label:{not_labels[1]}" f"+type:{action_type}" f"+is:{is_query}" + f"+author:{github_username}" f"+-is:{not_query}" f"+created:{date_range}" f"&per_page={per_page}" |