A few minor issues #75
louispotok
started this conversation in
General
Replies: 2 comments 2 replies
-
Hi @louispotok, Thanks for the information. All points are good. Feel free to submit issues for all of them. Or I'll move them to the issues in a free time. Unfortunately, Google's docs are not very strict and complete about the formats, so still tuning the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also, If you have fixes for any of the issues, PRs are very welcomed :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, it's my first time using gcsa -- super easy to get started, thanks so much for your work on this!
I encountered a few problems in trying to use it, but it didn't seem very friendly to jump into the issue tracker and dump several new issues at once. So I'm putting them here -- happy to add issues to the tracker if that's helpful, or to leave the discussion here for now.
I'm trying to do something very simple:
Event.__init__
assumes that events have either a start or end date, but it's possible for them to have neither. For example, I got an event returned that looked like this:{'kind': 'calendar#event', 'etag': '"redacted"', 'status': 'cancelled', 'originalStartTime': {'dateTime': '2021-01-01T15:00:00-05:00', 'timeZone': 'America/Los_Angeles'}}
. This caused an attribute error on line 131 ofevent.py
. I "fixed" it by adding anelse
to the block above whereself.end
is set, making it None. Not sure if this causes downstream problems.Took me a bit of poking around to find that the
transparency
field is included underEvent.other
when available. Doesn't look like theother
field is covered in the docs -- maybe add a mention of that, and even put in a list of other fields so that it's searchable.Some of my events have Attachments of unsupported types, which causes the whole event serialization to error. I'm not sure where attachments are used elsewhere, but a simple workaround might be:
unsupported_mime_type
which can be checked later.Beta Was this translation helpful? Give feedback.
All reactions