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

Add support for importing Indico Event JSONs #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DragoonAethis
Copy link

Adds a new ImportHandler which handles Indico Event exports (with the "detail" export var set to "contributions"), along with a full example with real data from XDC 2021.

Also makes datetime parsers a bit more universal and able to deal with 3-part timestamps (HH:MM or HH:MM:SS).

Unfortunately, there's one new dependency - pytz. Indico returns all dates with a specific timezone set and the exported JSON may contain non-UTC datetimes.

Adds a new ImportHandler which handles Indico Event exports (with the
"detail" export var set to "contributions"), along with a full example
with real data from XDC 2021.

Also makes datetime parsers a bit more universal and able to deal with
3-part timestamps (HH:MM or HH:MM:SS).
For Indico contributions where no people are set as speakers/organizers,
we need to set a fallback group (something like "Event Organizers"). The
ID must be a positive int > 0, so let's figure out the highest available
ID and make the fallback ID that max + 1.
Copy link
Member

@saerdnaer saerdnaer left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants