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

Update Code.gs > getPastDaysIfOnlyFutureEvents #217

Closed
wants to merge 1 commit into from

Conversation

la32094uf
Copy link

Found a way to get past events, if onlyFutureEvents is set to true. Great for big calendars, which lead to timeouts. With this tweak, it is still possible to see some events in the past.

@ryancasler
Copy link

I was adding a check that it was greater than 0 to allow folks to still sync only future events when it occurred to me that as long as the number is 0, you'd get the same result. DER! (I'm a coding novice at best so I'm glad it occurred to me before posting it.)

But I did want to say, thanks for this!!! I have noticed recently that I am getting a LOT of notifications about my script timing out. My calendar is just about 2 years old and I have at least 4-5 events per day. I still want those old ones to be shown for reference for a little while. This is a great compromise. LOVE IT!

Copy link
Collaborator

@Lonestarjeepin Lonestarjeepin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on local copy and appears to be working as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants