fix categorize error (#2348)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
7edb4ad7dc
commit
cb00f36f62
@ -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
|
||||
|
||||
@ -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"])
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user