From ec13c38dea6fd88c1ca11c218560e26c961a9dc7 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Mon, 26 May 2025 00:09:23 -0400 Subject: [PATCH] Fixed bug when checking for active tokens --- app/routers/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/bot.py b/app/routers/bot.py index 2a5acc0..7440be3 100644 --- a/app/routers/bot.py +++ b/app/routers/bot.py @@ -81,7 +81,7 @@ def find_token_in_active_clients(target_token: str) -> bool: True if the token is found in any ActiveClient, False otherwise. """ for client_id in current_app.active_clients: - if current_app.active_clients[client_id].active_token == target_token: + if current_app.active_clients[client_id].active_token.token == target_token: return True return False