mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 20:05:13 +02:00
Fixed flows/flow key issue in config (#616)
This commit is contained in:
parent
1c006d5b14
commit
83ea15dae7
1 changed files with 4 additions and 3 deletions
|
|
@ -124,12 +124,13 @@ class Processor(AsyncProcessor):
|
||||||
|
|
||||||
logger.info(f"Configuration version: {version}")
|
logger.info(f"Configuration version: {version}")
|
||||||
|
|
||||||
if "flows" in config:
|
if "flow" in config:
|
||||||
|
|
||||||
self.flows = {
|
self.flows = {
|
||||||
k: json.loads(v)
|
k: json.loads(v)
|
||||||
for k, v in config["flows"].items()
|
for k, v in config["flow"].items()
|
||||||
}
|
}
|
||||||
|
else:
|
||||||
|
self.flows = {}
|
||||||
|
|
||||||
logger.debug(f"Flows: {self.flows}")
|
logger.debug(f"Flows: {self.flows}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue