Skip to content

Commit

Permalink
Post rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jul 29, 2024
1 parent 56c7f09 commit f541bb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions backend/gn_module_monitoring/config/generic/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@
"definition": "Permet de n'avoir que les types de site lié au module"
},
"id_sites_group": {
"type_widget": "integer",
"attribut_label": "ID Sites Groups",
"hidden": true,
"schema_dot_table": "gn_monitoring.t_base_sites"
"required": false
}
}
}
1 change: 1 addition & 0 deletions backend/gn_module_monitoring/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"application": "GeoNature",
}


def monitoring_module_config_path(module_code):
return SUB_MODULE_CONFIG_DIR / module_code

Expand Down
7 changes: 1 addition & 6 deletions backend/gn_module_monitoring/monitoring/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,7 @@ class TMonitoringSites(TBaseSites, PermissionModel, SitesQuery):
.scalar_subquery()
)

geom_geojson = column_property(
select(func.st_asgeojson(TBaseSites.geom))
.where(TBaseSites.id_base_site == id_base_site)
.correlate_except(TBaseSites)
.scalar_subquery()
)
geom_geojson = column_property(func.ST_AsGeoJSON(TBaseSites.geom), deferred=True)
types_site = DB.relationship("BibTypeSite", secondary=cor_site_type, overlaps="sites")

@hybrid_property
Expand Down

0 comments on commit f541bb0

Please sign in to comment.