Skip to content

Commit

Permalink
do not run frepple.updatePlannedForecast() for interactive planning
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamlahlou committed Nov 22, 2024
1 parent 6e5f1d2 commit 237eae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freppledb/forecast/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1471,10 +1471,10 @@ def getWeight(cls, database=DEFAULT_DB_ALIAS, **kwargs):
return -1

@classmethod
def run(cls, database=DEFAULT_DB_ALIAS, **kwargs):
def run(cls, cluster=-1, database=DEFAULT_DB_ALIAS, **kwargs):
import frepple

if "supply" in os.environ:
if cluster == -1:
frepple.updatePlannedForecast()
frepple.cache.flush()
frepple.cache.write_immediately = True
Expand Down

0 comments on commit 237eae5

Please sign in to comment.