It's because I was using "stock_level > 0" as a constraint on loading the data, ugh!
Ah, and I thought it's because there is no stock available. What about:
Code:
if item.stock > 0 and item.stock < maxQty:
Fixed, committed & pushed. Grab the latest version and you won't have the problem.
Thanks for the quick fix. I changed the exported prices.tmp to include all fields and also update the timestamp/demand/stock.
I see you have added a new switch "--full" for the "nav" calculation. Does the "run" adapt to the quantity of the cargo? It doesn't look like it, because it's suggesting "BD+47 2112 -> AULIN" with full cargo in my cobra, which isn't possible.
Anyway, thanks for the calculator and open source it. It's much appreciated.