Skip to content

Commit

Permalink
fix: hierarchy subcategories names (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Corny <[email protected]>
  • Loading branch information
JulienCorny and JulienCorny authored Dec 10, 2024
1 parent 354309c commit 13955a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/gn_module_zh/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 13955a4

Please sign in to comment.