Skip to content

Commit

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

timeAgnosticRoute := prefix + s.WorkDayRouteToOffice.String() + suffix
if now.Weekday() == time.Monday || 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 {
Expand All @@ -41,12 +41,12 @@ 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 := "\n04.11 (пн) праздничный день - трансфера нет"
suffix := "\nВ выходные дни трансфера нет"
//suffix := "\n04.11 (пн) праздничный день - трансфера нет"
//suffix := "\nНовогодние каникулы до 8го января - трансфера нет"

timeAgnosticRoute := prefix + s.WorkDayRouteFromOffice.String() + suffix
if now.Weekday() == time.Monday || 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 {
Expand Down

0 comments on commit 84a2f56

Please sign in to comment.