mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-20 13:10:05 +08:00
Fix: swich follow interact issue. (#6279)
### What problem does this PR solve? #6188 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
8daec9a4c5
commit
42e89e4a92
@ -54,7 +54,7 @@ class Switch(ComponentBase, ABC):
|
|||||||
for item in cond["items"]:
|
for item in cond["items"]:
|
||||||
if not item["cpn_id"]:
|
if not item["cpn_id"]:
|
||||||
continue
|
continue
|
||||||
if item["cpn_id"].find("begin") >= 0:
|
if item["cpn_id"].lower().find("begin") >= 0 or item["cpn_id"].lower().find("answer") >= 0:
|
||||||
continue
|
continue
|
||||||
cid = item["cpn_id"].split("@")[0]
|
cid = item["cpn_id"].split("@")[0]
|
||||||
res.append(cid)
|
res.append(cid)
|
||||||
@ -75,7 +75,7 @@ class Switch(ComponentBase, ABC):
|
|||||||
res.append(self.process_operator(p.get("value",""), item["operator"], item.get("value", "")))
|
res.append(self.process_operator(p.get("value",""), item["operator"], item.get("value", "")))
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
out = self._canvas.get_component(cid)["obj"].output()[1]
|
out = self._canvas.get_component(cid)["obj"].output(allow_partial=False)[1]
|
||||||
cpn_input = "" if "content" not in out.columns else " ".join([str(s) for s in out["content"]])
|
cpn_input = "" if "content" not in out.columns else " ".join([str(s) for s in out["content"]])
|
||||||
res.append(self.process_operator(cpn_input, item["operator"], item.get("value", "")))
|
res.append(self.process_operator(cpn_input, item["operator"], item.get("value", "")))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user