Skip to content

Commit

Permalink
8.05 (чт) и 09.05 (пт) - выходные дни
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Amezhenko committed May 4, 2024
1 parent 89e7801 commit e5cb4cd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ 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Новогодние каникулы до 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.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 @@ -42,16 +42,16 @@ 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Новогодние каникулы до 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.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 e5cb4cd

Please sign in to comment.