From 4b79715b16e718f0a7eac789ddece1bd7c0cd7f5 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 14 Jul 2019 11:51:19 +1000 Subject: [PATCH] plan: use conveyor_rates rather than hard coded values --- plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plan.py b/plan.py index aa66ba2..3d62700 100755 --- a/plan.py +++ b/plan.py @@ -84,8 +84,8 @@ def main(): # highest conveyor belt capacity. for name, rate in required_items.items(): print(name, rate, float(rate * 60)) - if rate * 60 > 780: - print("Rate exceeds mk5 conveyor") + if rate * 60 > conveyor_rates[-1]: + print("Rate exceeds max conveyor") # Calculate the number of machines required to build each item at the # calculated rates.