Skip to content

Commit

Permalink
Fix "tommorow" typo
Browse files Browse the repository at this point in the history
  • Loading branch information
injust authored Nov 26, 2024
1 parent b3671ec commit c35bb0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tgtg_scanner/models/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ def pickupdate(self) -> str:
pfr = self._datetimeparse(self.pickup_interval_start)
pto = self._datetimeparse(self.pickup_interval_end)
prange = f"{pfr.hour:02d}:{pfr.minute:02d} - {pto.hour:02d}:{pto.minute:02d}"
tommorow = now + datetime.timedelta(days=1)
tomorrow = now + datetime.timedelta(days=1)
if now.date() == pfr.date():
return f"{humanize.naturalday(now)}, {prange}"
if (pfr.date() - now.date()).days == 1:
return f"{humanize.naturalday(tommorow)}, {prange}"
return f"{humanize.naturalday(tomorrow)}, {prange}"
return f"{pfr.day}/{pfr.month}, {prange}"

def _get_distance_time(self, travel_mode: str) -> Union[DistanceTime, None]:
Expand Down

0 comments on commit c35bb0f

Please sign in to comment.