aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/infraction/_scheduler.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py
index c94874787..8286d3635 100644
--- a/bot/exts/moderation/infraction/_scheduler.py
+++ b/bot/exts/moderation/infraction/_scheduler.py
@@ -47,16 +47,16 @@ class InfractionScheduler:
log.trace(f"Rescheduling infractions for {self.__class__.__name__}.")
infractions = await self.bot.api_client.get(
- 'bot/infractions',
+ "bot/infractions",
params={
- 'active': 'true',
- 'ordering': 'expires_at',
- 'permanent': 'false',
- 'types': ','.join(supported_infractions),
+ "active": "true",
+ "ordering": "expires_at",
+ "permanent": "false",
+ "types": ",".join(supported_infractions),
},
)
- to_schedule = [i for i in infractions if not i['id'] in self.scheduler]
+ to_schedule = [i for i in infractions if i["id"] not in self.scheduler]
for infraction in to_schedule:
log.trace("Scheduling %r", infraction)