Skip to content

Commit

Permalink
no need to update unchanged records
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamlahlou committed Jan 23, 2025
1 parent e934368 commit 26c078b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion freppledb/forecast/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ def run(cls, database=DEFAULT_DB_ALIAS, **kwargs):
WHERE forecastplan.item_id = demand_agg.item_id
AND forecastplan.location_id = demand_agg.location_id
AND forecastplan.customer_id = demand_agg.customer_id
AND forecastplan.startdate = demand_agg.startdate);
AND forecastplan.startdate = demand_agg.startdate)
and (ordersopen is not NULL or ordersopenvalue is not null or orderstotal is not NULL or orderstotalvalue is not NULL);
"""
)
Expand Down

0 comments on commit 26c078b

Please sign in to comment.