Correct spelling mistakes
This commit is contained in:
parent
7755bcf668
commit
010f56aabf
|
@ -7,7 +7,7 @@ from agenda.types import StrDict, Trip
|
|||
|
||||
|
||||
def travel_legs(trip: Trip, stats: StrDict) -> None:
|
||||
"""Calcuate stats for travel legs."""
|
||||
"""Calculate stats for travel legs."""
|
||||
for leg in trip.travel:
|
||||
if leg["type"] == "flight":
|
||||
stats.setdefault("flight_count", 0)
|
||||
|
|
|
@ -245,7 +245,7 @@ def get_locations(trip: Trip) -> dict[str, StrDict]:
|
|||
|
||||
|
||||
def coordinate_dict(item: StrDict, coord_type: str) -> StrDict:
|
||||
"""Build coodinate dict for item."""
|
||||
"""Build coordinate dict for item."""
|
||||
return {
|
||||
"name": item["name"],
|
||||
"type": coord_type,
|
||||
|
|
Loading…
Reference in a new issue