Skip to content

Commit

Permalink
fix complete card bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Corny committed May 29, 2024
1 parent 2cc77d6 commit 3eb0989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/gn_module_zh/model/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def other_ref_geo(self, ref_geo):
refs = []
for ref_infos in CorZhArea.get_ref_geo_info(self.id_zh, id_types):
for info in ref_infos:
type_code = DB.session.get(BibAreasTypes, info.LAreas.id_type)
type_code = DB.session.get(BibAreasTypes, info.LAreas.id_type).type_code
refs.append(
{
"area_name": info.LAreas.area_name,
Expand Down Expand Up @@ -809,7 +809,7 @@ def __init__(self, id_area, id_doc_type, id_cors, remark):

def __str__(self):
return {
"commune": DB.session.get(LAreas, self.id_area),
"commune": DB.session.get(LAreas, self.id_area).id_area,
"type_doc": Utils.get_mnemo(self.id_doc_type),
"type_classement": [
Utils.get_mnemo(
Expand Down

0 comments on commit 3eb0989

Please sign in to comment.