Skip to content

Commit

Permalink
fix : minor edit in check_ratio_limits function
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Oct 3, 2024
1 parent 4616ba4 commit 94a1b88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mycoffee/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def check_ratio_limits(params):
ratio_lower_limit = METHODS_MAP[method]["ratio_lower_limit"]
ratio_upper_limit = METHODS_MAP[method]["ratio_upper_limit"]
if ratio < ratio_lower_limit or ratio > ratio_upper_limit:
print(RATIO_WARNING_MESSAGE)
print(RATIO_WARNING_MESSAGE.format(str(ratio_lower_limit), str(ratio_upper_limit)))


def calc_coffee(params):
Expand Down Expand Up @@ -155,3 +155,4 @@ def run(args):
params["coffee"] = calc_coffee(params)
params = filter_params(params)
print_message(params)
check_ratio_limits(params)

0 comments on commit 94a1b88

Please sign in to comment.