Skip to content

Commit fd07858

Browse files
Update Handout_LazyCook.md
1 parent b2cccbf commit fd07858

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/Handout_LazyCook.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ LazyCookAdministration.py
380380

381381
```python
382382
def validatePassword(pw: str) -> str | None:
383-
if len(pw) < 8: # +1
383+
if len(pw) < 8: # +1
384384
return "..."
385385
if not re.search(r"[A-Z]", pw): # +1
386386
return "..."
@@ -402,8 +402,8 @@ Der SUCUK-Algorithmus hat trotz verschachtelter Schleifen eine niedrige CC, weil
402402

403403
```python
404404
def _scoreRecipes(recipes: list[Recipe], ingredient) -> None:
405-
for recipe in recipes: # +1 (Schleife)
406-
for recipeIngredient in recipe.getIngredients(): # +1 (Schleife)
405+
for recipe in recipes: # +1 (Schleife)
406+
for recipeIngredient in recipe.getIngredients(): # +1 (Schleife)
407407
if recipeIngredient.getName() == ingredient.getName(): # +1
408408
recipe.incrementMatching()
409409
recipe.setRating(recipe.getMatching() / len(recipe.getIngredients()))
@@ -480,7 +480,7 @@ def validateRefreshToken(token: str) -> dict | None:
480480
return None
481481
expiresAt = datetime.fromisoformat(entry["expiresAt"]) #
482482
if expiresAt.tzinfo is None: # │ diese 4 Zeilen
483-
expiresAt = expiresAt.replace(tzinfo=timezone.utc) # │ sind dupliziert
483+
expiresAt = expiresAt.replace(tzinfo=timezone.utc) # │ sind dupliziert
484484
if expiresAt < datetime.now(timezone.utc): #
485485
return None
486486
return entry
@@ -492,7 +492,7 @@ def validatePasswordResetToken(token: str) -> dict | None:
492492
return None
493493
expiresAt = datetime.fromisoformat(entry["expiresAt"]) #
494494
if expiresAt.tzinfo is None: # │ identisch
495-
expiresAt = expiresAt.replace(tzinfo=timezone.utc) #
495+
expiresAt = expiresAt.replace(tzinfo=timezone.utc) #
496496
if expiresAt < datetime.now(timezone.utc): #
497497
return None
498498
return entry

0 commit comments

Comments
 (0)