From 6324f82789eb21ba613c3d6433444c9cc47b4a2c Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 22 Jun 2025 23:25:13 -0400 Subject: [PATCH] Update the OP25 generator model to take either a string or an int --- app/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models.py b/app/models.py index ed85b50..5df5a32 100644 --- a/app/models.py +++ b/app/models.py @@ -1,5 +1,5 @@ from pydantic import BaseModel -from typing import List, Optional +from typing import List, Optional, Union from enum import Enum @@ -25,7 +25,7 @@ class TalkgroupTag(BaseModel): class ConfigGenerator(BaseModel): type: DecodeMode systemName: str - channels: List[str] + channels: List[Union[int, str]] tags: Optional[List[TalkgroupTag]] whitelist: Optional[List[int]]