Skip to content

Commit

Permalink
fix: request - isouter + join dim_zone (to check)
Browse files Browse the repository at this point in the history
  • Loading branch information
rv2931 committed Dec 17, 2024
1 parent 0543ef5 commit 1d14696
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/bloom/services/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ def get_vessels_activity_in_zones(
.select_from(sql_model.Metrics)
.join(
sql_model.Vessel,
sql_model.Metrics.vessel_id == sql_model.Vessel.id,
isouter=True,
sql_model.Metrics.vessel_id == sql_model.Vessel.id
)
.join(
sql_model.Zone,
sql_model.Metrics.zone_id == sql_model.Zone.id
)
.where(
sql_model.Metrics.timestamp.between(
Expand Down

0 comments on commit 1d14696

Please sign in to comment.