aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-13 16:27:28 +0200
committerGravatar Boris Muratov <[email protected]>2021-03-13 16:27:28 +0200
commit4324b3f6ac80bbcbd2eef80303bf7caf1dfa8cca (patch)
tree39d92e960326b55302e3514152921efda11de732
parentUse log instead of erroneous self.log (diff)
Apply requested grammar and style changes.
-rw-r--r--bot/exts/recruitment/talentpool/_cog.py11
-rw-r--r--bot/exts/recruitment/talentpool/_review.py10
2 files changed, 13 insertions, 8 deletions
diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py
index 070a4fd83..7b21dcd53 100644
--- a/bot/exts/recruitment/talentpool/_cog.py
+++ b/bot/exts/recruitment/talentpool/_cog.py
@@ -1,4 +1,3 @@
-
import logging
import textwrap
from collections import ChainMap
@@ -47,7 +46,10 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
@nomination_group.command(name='watched', aliases=('all', 'list'), root_aliases=("nominees",))
@has_any_role(*MODERATION_ROLES)
async def watched_command(
- self, ctx: Context, oldest_first: bool = False, update_cache: bool = True
+ self,
+ ctx: Context,
+ oldest_first: bool = False,
+ update_cache: bool = True
) -> None:
"""
Shows the users that are currently being monitored in the talent pool.
@@ -60,7 +62,10 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"):
await self.list_watched_users(ctx, oldest_first=oldest_first, update_cache=update_cache)
async def list_watched_users(
- self, ctx: Context, oldest_first: bool = False, update_cache: bool = True
+ self,
+ ctx: Context,
+ oldest_first: bool = False,
+ update_cache: bool = True
) -> None:
"""
Gives an overview of the nominated users list.
diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py
index b84499d98..682a32918 100644
--- a/bot/exts/recruitment/talentpool/_review.py
+++ b/bot/exts/recruitment/talentpool/_review.py
@@ -278,16 +278,16 @@ class Reviewer:
if e.response.status == 404:
log.trace(f"Nomination API 404: Can't find nomination with id {nomination_id}")
await ctx.send(f"❌ Can't find a nomination with id `{nomination_id}`")
- return None
+ return
else:
raise
if nomination["reviewed"]:
await ctx.send("❌ This nomination was already reviewed, but here's a cookie 🍪")
- return None
+ return
elif not nomination["active"]:
await ctx.send("❌ This nomination is inactive")
- return None
+ return
await self.bot.api_client.patch(f"{self._pool.api_endpoint}/{nomination['id']}", json={"reviewed": True})
if nomination["user"] in self._review_scheduler:
@@ -302,7 +302,7 @@ class Reviewer:
Cancels the review of the nominee with ID user_id.
It's important to note that this applies only until reschedule_reviews is called again.
- To permenantly cancel someone's review, either remove them from the pool, or use mark_reviewed.
+ To permanently cancel someone's review, either remove them from the pool, or use mark_reviewed.
"""
self._review_scheduler.cancel(user_id)
@@ -311,6 +311,6 @@ class Reviewer:
Cancels all reviews.
It's important to note that this applies only until reschedule_reviews is called again.
- To permenantly cancel someone's review, either remove them from the pool, or use mark_reviewed.
+ To permanently cancel someone's review, either remove them from the pool, or use mark_reviewed.
"""
self._review_scheduler.cancel_all()