From d8e5f2c3cb0e022abf60fe26e4997cd028a2821f Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Thu, 6 Feb 2020 12:33:36 +0100 Subject: potential bugfix for https://github.com/python-caldav/caldav/issues/79 --- calendar-cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3