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

ICalendar file export for events #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OverkillGuy
Copy link
Contributor

@OverkillGuy OverkillGuy commented Mar 14, 2022

Fixes #53.

  • New dependency "icalendar" to export events into ical format.
  • Convert event.py Events into ICalendar events
  • Completely untested (I don't have events sample to play with)
  • Gotta check/recheck the timezone management on that code (does no tz info mean UTC?)

I'm fairly sure that uploading an ical file like that, to an HTTP endpoint, is sufficient to make the famed "webcal feed", so users can import them as readonly.

@OverkillGuy
Copy link
Contributor Author

Should make it more clear: this PR is a good first step to fully customizable per-user calendar exports: Current function gives a ical content from a given list of event, can be plugged in to per-user filtering system, returning the list of event that matches player preferences.

@Gehock
Copy link
Member

Gehock commented Mar 21, 2022

I tried running the code but there seem to be some syntax errors in there (plus the EventDatabase doesn't currently support loading the events without being connected to Discord, which should be fixed). Tried to get the Actions to run by reopening the PR but apparently they need some extra configuring as well

@Gehock Gehock force-pushed the main branch 2 times, most recently from 2dedfd6 to 6a5fb32 Compare April 2, 2024 14:29
@Gehock Gehock force-pushed the main branch 2 times, most recently from 2931dc1 to 2b67941 Compare January 23, 2025 10:43
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.

Automatically generate an iCal/Google Calendar for operations
2 participants