Update egg_timing.py
Browse files- egg_timing.py +3 -3
egg_timing.py
CHANGED
|
@@ -7,13 +7,13 @@ from typing import Dict
|
|
| 7 |
|
| 8 |
# Base cook times in seconds for each doneness target.
|
| 9 |
DONENESS_BASE_SECONDS: Dict[str, int] = {
|
| 10 |
-
"流心":
|
| 11 |
-
"
|
| 12 |
"全熟": int(10.5 * 60),
|
| 13 |
}
|
| 14 |
|
| 15 |
# Add a small penalty for each extra egg after the first.
|
| 16 |
-
SECONDS_PER_EXTRA_EGG =
|
| 17 |
|
| 18 |
|
| 19 |
def calculate_cook_seconds(egg_count: int, doneness: str) -> int:
|
|
|
|
| 7 |
|
| 8 |
# Base cook times in seconds for each doneness target.
|
| 9 |
DONENESS_BASE_SECONDS: Dict[str, int] = {
|
| 10 |
+
"流心": 6.5 * 60,
|
| 11 |
+
"8成熟": int(7 * 60),
|
| 12 |
"全熟": int(10.5 * 60),
|
| 13 |
}
|
| 14 |
|
| 15 |
# Add a small penalty for each extra egg after the first.
|
| 16 |
+
SECONDS_PER_EXTRA_EGG = 10
|
| 17 |
|
| 18 |
|
| 19 |
def calculate_cook_seconds(egg_count: int, doneness: str) -> int:
|