Skip to content

Commit

Permalink
fix : calc_coffee function bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Oct 12, 2024
1 parent fab17ef commit d470ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mycoffee/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def calc_coffee(params):
:type params: dict
:return: coffee amount as float
"""
coffee = params["water"] * params["coffee_ratio"] / params["water_ratio"]
coffee = params["cups"] * params["water"] * params["coffee_ratio"] / params["water_ratio"]
return coffee


Expand Down

0 comments on commit d470ce5

Please sign in to comment.