浏览代码

Fix spelling errors (#5224)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.0
davidche 8 个月前
父节点
当前提交
bf5f6ec262
没有帐户链接到提交者的电子邮件
共有 5 个文件被更改,包括 6 次插入6 次删除
  1. 2
    2
      agent/canvas.py
  2. 1
    1
      agent/component/base.py
  3. 1
    1
      agent/component/categorize.py
  4. 1
    1
      agent/component/generate.py
  5. 1
    1
      agent/component/template.py

+ 2
- 2
agent/canvas.py 查看文件

self.components[k]["obj"].reset() self.components[k]["obj"].reset()
self._embed_id = "" self._embed_id = ""


def get_compnent_name(self, cid):
def get_component_name(self, cid):
for n in self.dsl["graph"]["nodes"]: for n in self.dsl["graph"]["nodes"]:
if cid == n["id"]: if cid == n["id"]:
return n["data"]["name"] return n["data"]["name"]
if c not in waiting: if c not in waiting:
waiting.append(c) waiting.append(c)
continue continue
yield "*'{}'* is running...🕞".format(self.get_compnent_name(c))
yield "*'{}'* is running...🕞".format(self.get_component_name(c))


if cpn.component_name.lower() == "iteration": if cpn.component_name.lower() == "iteration":
st_cpn = cpn.get_start() st_cpn = cpn.get_start()

+ 1
- 1
agent/component/base.py 查看文件

eles.extend(self._canvas.get_component(cpn_id)["obj"]._param.query) eles.extend(self._canvas.get_component(cpn_id)["obj"]._param.query)
continue continue


eles.append({"name": self._canvas.get_compnent_name(cpn_id), "key": cpn_id})
eles.append({"name": self._canvas.get_component_name(cpn_id), "key": cpn_id})
else: else:
eles.append({"key": q["value"], "name": q["value"], "value": q["value"]}) eles.append({"key": q["value"], "name": q["value"], "value": q["value"]})
return eles return eles

+ 1
- 1
agent/component/categorize.py 查看文件

def debug(self, **kwargs): def debug(self, **kwargs):
df = self._run([], **kwargs) df = self._run([], **kwargs)
cpn_id = df.iloc[0, 0] cpn_id = df.iloc[0, 0]
return Categorize.be_output(self._canvas.get_compnent_name(cpn_id))
return Categorize.be_output(self._canvas.get_component_name(cpn_id))



+ 1
- 1
agent/component/generate.py 查看文件

res.append({"key": r.group(1), "name": p["name"]}) res.append({"key": r.group(1), "name": p["name"]})
key_set.add(r.group(1)) key_set.add(r.group(1))
continue continue
cpn_nm = self._canvas.get_compnent_name(cpn_id)
cpn_nm = self._canvas.get_component_name(cpn_id)
if not cpn_nm: if not cpn_nm:
continue continue
res.append({"key": cpn_id, "name": cpn_nm}) res.append({"key": cpn_id, "name": cpn_nm})

+ 1
- 1
agent/component/template.py 查看文件

res.append({"key": r.group(1), "name": p["name"]}) res.append({"key": r.group(1), "name": p["name"]})
key_set.add(r.group(1)) key_set.add(r.group(1))
continue continue
cpn_nm = self._canvas.get_compnent_name(cpn_id)
cpn_nm = self._canvas.get_component_name(cpn_id)
if not cpn_nm: if not cpn_nm:
continue continue
res.append({"key": cpn_id, "name": cpn_nm}) res.append({"key": cpn_id, "name": cpn_nm})

正在加载...
取消
保存