From c098e429a066c024c6bf12ad2dcf3914f074acb4 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 25 May 2025 21:43:00 -0400 Subject: [PATCH] Fix enum bug --- app/client.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/client.py b/app/client.py index c21e7aa..6ea75f6 100644 --- a/app/client.py +++ b/app/client.py @@ -30,14 +30,15 @@ drb_api = DRBCDBAPI(CLIENT_API_URL) srv_api = RadioAPIClient(SERVER_API_URL) # --- Define the client status object --- -class StatusValues(str, Enum): +class DiscordStatusValues(str, Enum): + INVOICE = "in_voice" # The discord client is in at least one voice channel ONLINE = "online" # The discord client is online OFFLINE = "offline" # The discord client is offline -class DiscordStatusValues(StatusValues): - INVOICE = "in_voice" # The discord client is in at least one voice channel -class OP25StatusValues(StatusValues): +class OP25StatusValues(str, Enum): LISTENING = "listening" # OP25 is online and listening + ONLINE = "online" # OP25 is online + OFFLINE = "offline" # OP25 is offline client_status = {