From 58a95fd5010b940146f738eb952b7935f9a0c5df Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 24 May 2025 18:28:54 -0400 Subject: [PATCH] Reorganize for classes to access each other --- app/internal/types.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/internal/types.py b/app/internal/types.py index 2dc464d..bcdfa3a 100644 --- a/app/internal/types.py +++ b/app/internal/types.py @@ -1,17 +1,6 @@ from typing import Optional, List, Dict, Any from enum import Enum -class ActiveClient: - """ - The active client model in memory for quicker access - """ - websocket = None - active_token: DiscordId = None - - def __init__(self, websocket= None, active_token:DiscordId=None): - self.active_token = active_token - self.websocket = websocket - class DemodTypes(str, Enum): P25 = "P25" DMR = "DMR" @@ -189,3 +178,15 @@ class System: tags=data.get("tags", None), whitelist=data.get("whitelist", None) ) + + +class ActiveClient: + """ + The active client model in memory for quicker access + """ + websocket = None + active_token: DiscordId = None + + def __init__(self, websocket= None, active_token:DiscordId=None): + self.active_token = active_token + self.websocket = websocket \ No newline at end of file