버전 업그레이드

This commit is contained in:
2026-06-18 13:38:27 +09:00
parent a48a4b5fe5
commit ba33a78fec
37 changed files with 3355 additions and 1165 deletions

View File

@@ -1,25 +1,18 @@
# 그룹 관리 — A/B 모델 그룹 수동 전환 (최대 4종 per group)
# 검사 대상 관리 — DB 미연결 시 PatMax 슬롯 1~16 허용 (레거시 호환)
from logic.products import MAX_PATMAX_SLOTS
class GroupManager:
MAX_PER_GROUP = 4
def __init__(self):
self._group_a: list = []
self._group_b: list = []
self._active: str = "A"
def set_group_a(self, model_list: list):
self._group_a = model_list[: self.MAX_PER_GROUP]
def set_group_b(self, model_list: list):
self._group_b = model_list[: self.MAX_PER_GROUP]
"""레거시 호환용. 그룹 A/B 전환·선택 제한은 비활성화."""
def get_active_group(self) -> list:
return self._group_a if self._active == "A" else self._group_b
return []
def get_active_name(self) -> str:
return self._active
return "ALL"
def get_allowed_ids(self) -> list:
return list(range(1, MAX_PATMAX_SLOTS + 1))
def switch_group(self) -> str:
"""A↔B 전환 후 활성 그룹 이름 반환"""
self._active = "B" if self._active == "A" else "A"
return self._active
return "ALL"