瀏覽代碼
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
1 年之前
No account linked to committer's email address
|
|
|
@@ -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"]) |
|
|
|
|
|
|
|
|