From efd152e47e245c8ceaa7443e67fa870cb17ac6a1 Mon Sep 17 00:00:00 2001 From: Julien Corny Date: Sun, 7 Apr 2024 09:24:46 +0200 Subject: [PATCH] fix hierarchy __str__ error --- backend/gn_module_zh/model/cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/gn_module_zh/model/cards.py b/backend/gn_module_zh/model/cards.py index ea67101e..90ffc3ce 100644 --- a/backend/gn_module_zh/model/cards.py +++ b/backend/gn_module_zh/model/cards.py @@ -1198,7 +1198,7 @@ def __set_statuses(self): return self.status.__str__() def __set_hierarchy(self): - return self.hierarchy.__str__() if self.hierarchy is not None else None + return self.hierarchy.as_dict() if self.hierarchy is not None else None def __set_evaluation(self): self.__set_main_functions()