aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/issues.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/evergreen/issues.py')
-rw-r--r--bot/exts/evergreen/issues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index 55ded054..72d88d04 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -19,7 +19,7 @@ BAD_RESPONSE = {
MAX_REQUESTS = 10
REQUEST_HEADERS = dict()
-PYTHON_DISCORD_REPOS = "https://api.github.com/orgs/{repo}/repos"
+REPOS_API = "https://api.github.com/orgs/{org}/repos"
if GITHUB_TOKEN := Tokens.github:
REQUEST_HEADERS["Authorization"] = f"token {GITHUB_TOKEN}"
@@ -53,7 +53,7 @@ class Issues(commands.Cog):
@tasks.loop(minutes=30)
async def get_pydis_repos(self) -> None:
"""Get all python-discord repositories on github."""
- async with self.bot.http_session.get(PYTHON_DISCORD_REPOS.format(repo="python-discord")) as resp:
+ async with self.bot.http_session.get(REPOS_API.format(org="python-discord")) as resp:
if resp.status == 200:
data = await resp.json()
for repo in data: