Skip to content

Commit

Permalink
fix model label (TODO check if labelling is ok for export sql generation
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Jan 11, 2024
1 parent 1df37a3 commit 587144d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/m_sipaf/backend/m_sipaf/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ class PassageFaune(db.Model):
CorPfLinear.id_linear == LLinears.id_linear,
)
)
.label("label_infrastructures")
.scalar_subquery()
.label("label_infrastructures")
)

label_communes = column_property(
Expand All @@ -209,8 +209,8 @@ class PassageFaune(db.Model):
BibAreasTypes.type_code == "COM",
)
)
.label("label_communes")
.scalar_subquery()
.label("label_communes")
)

label_departements = column_property(
Expand All @@ -223,8 +223,8 @@ class PassageFaune(db.Model):
BibAreasTypes.type_code == "DEP",
)
)
.label("label_departements")
.scalar_subquery()
.label("label_departements")
)

label_regions = column_property(
Expand All @@ -237,8 +237,8 @@ class PassageFaune(db.Model):
BibAreasTypes.type_code == "REG",
)
)
.label("label_regions")
.scalar_subquery()
.label("label_regions")
)


Expand Down

0 comments on commit 587144d

Please sign in to comment.