Skip to content

Commit

Permalink
Make module constants tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonyte committed Jun 4, 2024
1 parent 5c41c13 commit 80a6a73
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions src/ferry_planner/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,33 @@
from ferry_planner.location import LocationId
from ferry_planner.utils import datetime_to_timedelta

MONTHS = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"]
WEEKDAY_NAMES = ("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday")
NO_SAILINGS_MESSAGES = [
MONTHS = (
"JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
"JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC",
)
WEEKDAY_NAMES = (
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday",
)
NO_SAILINGS_MESSAGES = (
"Seasonal schedules have not been posted for these dates",
"Schedules for your selected date and route are currently unavailable",
]
)


class FerrySailing(BaseModel):
Expand Down

0 comments on commit 80a6a73

Please sign in to comment.