Михаил Капелько 10 mesi fa
parent
commit
4af01f520f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      Utilities/platform/2/generation/pipeSource.py

+ 1
- 1
Utilities/platform/2/generation/pipeSource.py Vedi File

@@ -18,7 +18,7 @@ def pipeSource(name, entity, structure):
elif src.startswith("K."):
busKey = src
busValueType = structure.model.fields[name][0]
src = f"Bus.events.compactMap { Bus.convertKeyValue({busKey}.rawValue, \$0) }.map { (k: String, v: {busValueType}) in v }.eraseToAnyPublisher()"
src = "Bus.events.compactMap { Bus.convertKeyValue(" + busKey + ".rawValue, $0) }.map { (k: String, v: " + busValueType + ") in v }.eraseToAnyPublisher()"
# Значение по умолчанию.
elif src == default:
return default + "." + name


Loading…
Annulla
Salva