Skip to content

Commit

Permalink
Праздники закончились
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Amezhenko committed May 12, 2024
1 parent e5cb4cd commit a5c5d53
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ type Schedule struct {
func (s Schedule) GetToOfficeText(now time.Time) (string, string) {
prefix := "*Рейсы в офис*\n\n"
//suffix := "\nСубботний рейс в " + s.SaturdayRouteToOffice.String()
//suffix := "\nВ выходные дни трансфера нет"
suffix := "\nЧт и Пт праздничные дни - трансфера нет"
suffix := "\nВ выходные дни трансфера нет"
//suffix := "\nЧт и Пт праздничные дни - трансфера нет"
//suffix := "\nНовогодние каникулы до 8го января - трансфера нет"

timeAgnosticRoute := prefix + s.WorkDayRouteToOffice.String() + suffix
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday || now.Weekday() == time.Wednesday {
//if now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday {
if now.Weekday() == time.Thursday || now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday || now.Weekday() == time.Wednesday {
//if now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday {
//if now.Weekday() == time.Thursday || now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Wednesday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
return timeAgnosticRoute, ""
}
Expand All @@ -41,17 +41,17 @@ func (s Schedule) GetToOfficeText(now time.Time) (string, string) {
func (s Schedule) GetFromOfficeText(now time.Time) (string, string) {
prefix := "*Рейсы из офиса*\n\n"
//suffix := "\nСубботний дежурный в " + s.SaturdayRouteFromOffice.String()
//suffix := "\nВ выходные дни трансфера нет"
suffix := "\nЧт и Пт праздничные дни - трансфера нет"
suffix := "\nВ выходные дни трансфера нет"
//suffix := "\nЧт и Пт праздничные дни - трансфера нет"
//suffix := "\nНовогодние каникулы до 8го января - трансфера нет"

timeAgnosticRoute := prefix + s.WorkDayRouteFromOffice.String() + suffix
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday || now.Weekday() == time.Wednesday {
//if now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday {
if now.Weekday() == time.Thursday || now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday || now.Weekday() == time.Wednesday {
//if now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday {
//if now.Weekday() == time.Saturday || now.Weekday() == time.Sunday || now.Weekday() == time.Monday || now.Weekday() == time.Tuesday {
//if now.Weekday() == time.Thursday || now.Weekday() == time.Friday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
//if now.Weekday() == time.Wednesday || now.Weekday() == time.Saturday || now.Weekday() == time.Sunday {
return timeAgnosticRoute, ""
}
Expand Down

0 comments on commit a5c5d53

Please sign in to comment.