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

Impossible use of list in markdown paragraph of event #1

Open
AbcSxyZ opened this issue Jan 16, 2025 · 0 comments
Open

Impossible use of list in markdown paragraph of event #1

AbcSxyZ opened this issue Jan 16, 2025 · 0 comments

Comments

@AbcSxyZ
Copy link
Contributor

AbcSxyZ commented Jan 16, 2025

## Title of your event

- Begin: dd/mm/yyyy hh:mm UTC+1
- End: dd/mm/yyyy hh:mm UTC+1
- Location: https://link-to-visio.org
- Categories: category 1, category 2

Description of your event.

- List in paragraph which create an error

Error message:

  File "open-calendar/git_calendar/git_calendar.py", line 120, in _extract_event_details
    name, value = field["children"][0]["children"][0]["raw"].split(":", 1)
ValueError: not enough values to unpack (expected 2, got 1)

Error coming from the way parsing is done in GitCalendar.markdown_parser, all list in all content assumed to fields of event (caldav).

Workaround: Do not use markdown list in paragraph of the event description.

AbcSxyZ added a commit to AbcSxyZ/open-calendar that referenced this issue Feb 10, 2025
fix Open-Models#29, Open-Models#28, Open-Models#27, Open-Models#26, Open-Models#24, Open-Models#22

Add list of following events:
- Science after Noon - Open Science Meets Citizen Science
- Florida OER Summit
- Journée du Libre Éducatif
- Open Hardware Summit 2025
- Open Science policies and the role of libraries – initiatives from
  China and Indonesia
- Semaine Numérique des URFIST
AbcSxyZ added a commit to AbcSxyZ/open-calendar that referenced this issue Feb 10, 2025
fix Open-Models#29, Open-Models#28, Open-Models#27, Open-Models#26, Open-Models#24, Open-Models#22

Add list of following events:
- Science after Noon - Open Science Meets Citizen Science
- Florida OER Summit
- Journée du Libre Éducatif
- Open Hardware Summit 2025
- Open Science policies and the role of libraries – initiatives from
  China and Indonesia
- Semaine Numérique des URFIST
AbcSxyZ added a commit that referenced this issue Feb 10, 2025
fix #29, #28, #27, #26, #24, #22

Add list of following events:
- Science after Noon - Open Science Meets Citizen Science
- Florida OER Summit
- Journée du Libre Éducatif
- Open Hardware Summit 2025
- Open Science policies and the role of libraries – initiatives from
  China and Indonesia
- Semaine Numérique des URFIST
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

No branches or pull requests

1 participant