aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-10-11 11:44:28 +0200
committerGravatar Leon Sandøy <[email protected]>2018-10-11 11:44:28 +0200
commita606e483b3a42357778fc3d4979e800e8dd38739 (patch)
treeee2c99f8d7172b87ed2e1dd1b90c09b52fbb26c8 /bot/cogs/hacktoberstats.py
parentMerge pull request #34 from markylon/master (diff)
Adding Pale Man, fixing all flake8 issues, converting halloweenify to use aiohttp, fixing broken logging, ignoring irrelevant loggers, and turning the script into a valid module script.
Diffstat (limited to 'bot/cogs/hacktoberstats.py')
-rw-r--r--bot/cogs/hacktoberstats.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bot/cogs/hacktoberstats.py b/bot/cogs/hacktoberstats.py
index 4e896ae9..ac81b887 100644
--- a/bot/cogs/hacktoberstats.py
+++ b/bot/cogs/hacktoberstats.py
@@ -95,7 +95,14 @@ class Stats:
is_query = f"public+author:{username}"
date_range = "2018-10-01..2018-10-31"
per_page = "300"
- query_url = f"{base_url}-label:{not_label}+type:{action_type}+is:{is_query}+created:{date_range}&per_page={per_page}"
+ query_url = (
+ f"{base_url}"
+ f"-label:{not_label}"
+ f"+type:{action_type}"
+ f"+is:{is_query}"
+ f"+created:{date_range}"
+ f"&per_page={per_page}"
+ )
headers = {"user-agent": "Discord Python Hactoberbot"}
async with aiohttp.ClientSession() as session: