diff --git a/backend/gn_module_zh/hierarchy.py b/backend/gn_module_zh/hierarchy.py index 70b670ed..3397895d 100644 --- a/backend/gn_module_zh/hierarchy.py +++ b/backend/gn_module_zh/hierarchy.py @@ -859,14 +859,14 @@ def __get_rule_name(self): try: return ( DB.session.execute( - select(TRules, BibHierCategories) + select(TRules, BibHierSubcategories) .join(TRules) .where(TRules.rule_id == self.rule_id) ) .all()[0] - .BibHierCategories.label.capitalize() + .BibHierSubcategories.label.capitalize() ) - except NoResultFound: + except: pass return ( DB.session.execute(