summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2020-02-06 12:33:36 +0100
committerTobias Brox <tobias@redpill-linpro.com>2020-02-06 12:33:36 +0100
commitd8e5f2c3cb0e022abf60fe26e4997cd028a2821f (patch)
tree704b4b744d4b204ee84296d36e3cba1e8b801883
parent03190e7b640f5f4b12ecc9d258078bb7c2ba4a24 (diff)
downloadcalendar-cli-d8e5f2c3cb0e022abf60fe26e4997cd028a2821f.zip
potential bugfix for https://github.com/python-caldav/caldav/issues/79
-rwxr-xr-xcalendar-cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index d70b33f..77e33c2 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -533,7 +533,7 @@ def todo_select(caldav_conn, args):
if args.top+args.limit+args.offset+args.offsetn and args.todo_uid:
raise ValueError("It doesn't make sense to combine --todo-uid with --top/--limit/--offset/--offsetn")
if args.todo_uid:
- tasks = [ find_calendar(caldav_conn, args).object_by_uid(args.todo_uid) ]
+ tasks = [ find_calendar(caldav_conn, args).todo_by_uid(args.todo_uid) ]
else:
## TODO: we're fetching everything from the server, and then doing the filtering here. It would be better to let the server do the filtering, though that requires library modifications.
## TODO: current release of the caldav library doesn't support the multi-key sort_keys attribute. The try-except construct should be removed at some point in the future, when caldav 0.5 is released.