Explorar el Código

fix categorize error (#2348)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.11.0
Kevin Hu hace 1 año
padre
commit
cb00f36f62
No account linked to committer's email address
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      agent/canvas.py
  2. 1
    1
      agent/component/categorize.py

+ 1
- 1
agent/canvas.py Ver fichero

@@ -299,7 +299,7 @@ class Canvas(ABC):
pat = " => ".join([p.split(":")[0] for p in path[0:l]])
return pat + " => " + pat

return
return False

def get_prologue(self):
return self.components["begin"]["obj"]._param.prologue

+ 1
- 1
agent/component/categorize.py Ver fichero

@@ -82,6 +82,6 @@ class Categorize(Generate, ABC):
if ans.lower().find(c.lower()) >= 0:
return Categorize.be_output(self._param.category_description[c]["to"])

return Categorize.be_output(self._param.category_description.items()[-1][1]["to"])
return Categorize.be_output(list(self._param.category_description.items())[-1][1]["to"])



Cargando…
Cancelar
Guardar