This commit is contained in:
Михаил Капелько
2023-12-28 18:37:08 +03:00
parent 0a5dd210c7
commit f9612a878d
4 changed files with 4 additions and 12 deletions

View File

@@ -1,8 +1,7 @@
def pipeBusSource(name, entity, busKey, structure, fmtBusPipe, fmtBusPipeToggle):
def pipeBusSource(name, entity, busKey, structure, fmt):
valueType = structure.model.fields[name][0]
fmt = fmtBusPipe
if "toggle" in entity.pipes[name]:
fmt = fmtBusPipeToggle
valueType = "Void"
return fmt \
.replace("%BUS_KEY%", busKey) \