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:
Kevin Hu 2024-09-10 16:03:30 +08:00 committed by GitHub
parent 7edb4ad7dc
commit cb00f36f62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"])