Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be nice if it sent an email on weeks with no game, saying "no game" #7

Closed
Haliboot opened this issue Aug 23, 2017 · 4 comments

Comments

@Haliboot
Copy link

No description provided.

@random-parts
Copy link
Owner

Trying to find a suitable way to work this out - taking into account that not all games are 7 days apart. Looking at the overall schedules, some weekday teams get scheduled on the weekend or different days then usual. Currently, I have it checking that there is not a game within the next 11 days days_between_games >= 10 and will schedule a bye week email when that comes up. The problem is the following scenario(or similar):

  • There is a Team game on Monday, [week 1, day 1]
  • the next Monday, [week 2, day 8] is a holiday
  • so, the game is scheduled for [week 2 day 12] (Friday)

it's still week 2, but the days between games is 11.

Would that still call for a bye-week email? What should the check be? What is the cut-off?
[I feel like I may be missing something here]

Its purely a subjective perspective on what constitutes a week or bye-week (as it relates in this context). What if the game were scheduled for Sunday instead of Friday? Is Sunday the start of a new week or is Monday? If its based purely off a US calendar that is stuck in the dark ages - the week starts on Sunday - and would not make sense to anyone else.

Was thinking about a Next Game email, sent a day or two after a game is played? An email with the DateTime of the next upcoming game, sent to all roster members wether or not they rsvp'd. Could add a days until next team game stat along with the DateTime. This option really seems a bit redundant with rsvp emails that also go out.

I like a bye-week email idea better, as it is more brain bandwidth efficient - but without absolute days between games, the script would have to make an assumption that everyone views something, as ambiguous as time, the same way.

Ideas?

@Haliboot
Copy link
Author

Haliboot commented Sep 14, 2017 via email

@random-parts
Copy link
Owner

That would work for most soccerZone leagues, since they are grouped by day-of-the-week.

What about leagues that play on random days of the week? or are alternately scheduled on either [Tuesday or Wednesday] for example? I think I remember some of the soccerZone youth leagues playing on either a Saturday or Sunday, or maybe both.

@Haliboot
Copy link
Author

Haliboot commented Sep 14, 2017 via email

random-parts added a commit that referenced this issue Nov 4, 2017
Adds a new method to find the scheduled byeweeks for the season; can filter out past dates. (#7)
random-parts added a commit that referenced this issue Nov 4, 2017
Added getNextActiveGame() to find the next scheduled game that is not cancelled to add to emails. (#7)
random-parts added a commit that referenced this issue Nov 4, 2017
Moved email templating to the bean object. Added new email types and generators (Next Games, Todays Games, Other-types not related to the schedule). Add new NamedRange for the paid range column-rows. resolves (#4) (#7) (#21)
random-parts added a commit that referenced this issue Nov 4, 2017
Adds a new method to find the scheduled byeweeks for the season; can filter out past dates. (#7)
random-parts added a commit that referenced this issue Nov 4, 2017
Added getNextActiveGame() to find the next scheduled game that is not cancelled to add to emails. (#7)
random-parts added a commit that referenced this issue Nov 4, 2017
Moved email templating to the bean object. Added new email types and generators (Next Games, Todays Games, Other-types not related to the schedule). Add new NamedRange for the paid range column-rows. Resolves (#4) (#7) (#21)
random-parts added a commit that referenced this issue Nov 4, 2017
Moved email templating to the bean object. Added new email types and generators (Next Games, Todays Games, Other-types not related to the schedule). Add new NamedRange for the paid range column-rows. Closes (#4) (#7) (#21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants