feat(access): paridad funcional de verificacion peaton vs conductor y pulsos a barrera/molinete segun desktop pct_view
This commit is contained in:
@@ -40,6 +40,8 @@ class WorkstationService:
|
||||
es_entrada = True
|
||||
else:
|
||||
es_entrada = not bool(m.get("ModuloEntradaID"))
|
||||
tipo_acc = int(m.get("tipo_acceso_id") or 3)
|
||||
es_peatonal = tipo_acc in (1, 2, 7)
|
||||
dto = LaneModuleDTO(
|
||||
id=m["ModuloID"],
|
||||
name=nom,
|
||||
@@ -48,6 +50,9 @@ class WorkstationService:
|
||||
grupo_modulos=m.get("GrupoModulos"),
|
||||
es_entrada=es_entrada,
|
||||
duracion_pulso=m.get("duracion_pulso"),
|
||||
tipo_acceso_id=tipo_acc,
|
||||
tipo_acceso_nombre=m.get("tipo_acceso_nombre") or ("Molinete/Puerta" if es_peatonal else "Barrera"),
|
||||
es_acceso_peatonal=es_peatonal,
|
||||
)
|
||||
if es_entrada:
|
||||
entry_modules.append(dto)
|
||||
|
||||
Reference in New Issue
Block a user