From 47a1972900f713ded621fcf3f75f85df69473e0f Mon Sep 17 00:00:00 2001 From: Conatum Date: Sun, 19 Sep 2021 13:05:30 +0300 Subject: [PATCH] fix (Accountability): Fix typo in . --- bot/modules/accountability/TimeSlot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/accountability/TimeSlot.py b/bot/modules/accountability/TimeSlot.py index 14fd013d..8572a5cf 100644 --- a/bot/modules/accountability/TimeSlot.py +++ b/bot/modules/accountability/TimeSlot.py @@ -170,7 +170,7 @@ class TimeSlot: "Attended": [], "Missing": [] } - for memid, mem in sorted(self.members.items(), key=lambda memid, mem: mem.data.duration, reverse=True): + for memid, mem in sorted(self.members.items(), key=lambda mem: mem[1].data.duration, reverse=True): mention = '<@{}>'.format(memid) if mem.has_attended: classifications["Attended"].append(