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(