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

Website now serves meeting icals #266

Closed
wants to merge 5 commits into from
Closed

Conversation

RandoomJD
Copy link
Contributor

requires myradio-go: james-events pull request

@URY-GitHub
Copy link

Thank you for this pull request, @RandoomJD!

@michael-grace, would you mind reviewing this PR, please? Feel free to ask anyone for help if you're not quite sure what you're doing.

func (m *EventsModel) Get() ([]myradio.Event, error) {
today := time.Now().Truncate(time.Hour * 24)
start := today.Format("20060102T150405Z")
end := today.AddDate(1, 0, 0).Format("20060102T150405Z")
Copy link
Member

Choose a reason for hiding this comment

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

these lines would be better off in myradio-go when creating the request, to allow a time.Time to be passed in

@@ -66,7 +66,7 @@
<br>
<h1 class="text-center">Come see us!</h1>
<br>
<p class="text-center">We have a calendar of <a href="https://goo.gl/5APK7Q">all our meetings</a>, to which new members are always welcome, and you can drop by the station almost any time and there'll be someone to talk to.</p>
<p class="text-center">We have a calendar of <a href="/meetings.ics">all our meetings</a>, to which new members are always welcome, and you can drop by the station almost any time and there'll be someone to talk to.</p>
Copy link
Member

Choose a reason for hiding this comment

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

will this give people an easy to read format, or just an integration?? also, this page only shows up once in someone's ury lifetime, so it maybe isn't best on the main website and keep it to myradio

@RandoomJD RandoomJD closed this Mar 5, 2021
@RandoomJD RandoomJD deleted the james-events branch March 5, 2021 14:05
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