From f18af33fb600c4fcd79ad8190877225f4ff2d1d1 Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 8 Dec 2021 11:44:35 +0200 Subject: [PATCH] fix (sessions): Recognise accountability sessions. --- bot/modules/study/tracking/session_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/study/tracking/session_tracker.py b/bot/modules/study/tracking/session_tracker.py index 24187f17..96262f04 100644 --- a/bot/modules/study/tracking/session_tracker.py +++ b/bot/modules/study/tracking/session_tracker.py @@ -78,7 +78,7 @@ class Session: # TODO: More reliable channel type determination if state.channel.id in tables.rented.row_cache: channel_type = SessionChannelType.RENTED - elif state.channel.id in tables.accountability_rooms.row_cache: + elif state.channel.category and state.channel.category.id == lion.guild_settings.accountability_category.data: channel_type = SessionChannelType.ACCOUNTABILITY else: channel_type = SessionChannelType.STANDARD