Skip to content

Commit

Permalink
Specify fk_relation between cover and wws
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Dec 17, 2024
1 parent 834b387 commit 7c83a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qgepqwat2ili/utils/qgep_export_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ def export_cover(self):
# )
# filtering only on wastewater_structures that are in subset_wws_ids
if self.filtered:
query = query.join(self.qgep_model.wastewater_structure).filter(
query = query.join(self.qgep_model.wastewater_structure, cover.fk_wastewater_structure = wastewater_structure.obj_id).filter(
self.qgep_model.wastewater_structure.obj_id.in_(self.subset_wws_ids)
)
# add sql statement to logger
Expand Down Expand Up @@ -1116,7 +1116,7 @@ def export_cover(self):
def export_cover_ws_off_sia405abwasser(self):
query = self.qgep_session.query(self.qgep_model.cover)
# if ws_off_sia405abwasser always filter out with subset_wws_ids
query = query.join(self.qgep_model.wastewater_structure).filter(
query = query.join(self.qgep_model.wastewater_structure, cover.fk_wastewater_structure = wastewater_structure.obj_id).filter(
self.qgep_model.wastewater_structure.obj_id.in_(self.subset_wws_ids)
)
# add sql statement to logger
Expand Down

0 comments on commit 7c83a41

Please sign in to comment.