[kupfer: 6/18] gtg: workaround for broken GetTasks method in GTG DBUS API



commit 6f6d79d305aa5de23eebc5893af3c28b02366278
Author: Karol BÄdkowski <karol bedkowski gmail com>
Date:   Wed Aug 22 16:50:44 2012 +0200

    gtg: workaround for broken GetTasks method in GTG DBUS API
    
    Try to read tasks via GetTasksFiltered when no results via GetTasks

 kupfer/plugin/gtg.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/gtg.py b/kupfer/plugin/gtg.py
index 996b9b6..62451be 100644
--- a/kupfer/plugin/gtg.py
+++ b/kupfer/plugin/gtg.py
@@ -78,6 +78,8 @@ def _load_tasks(interface, apiver):
 		tasks = interface.get_tasks()
 	else:
 		tasks = interface.GetTasks()
+		if not tasks:
+			tasks = interface.GetTasksFiltered("")
 	for task in tasks:
 		title = task['title'].strip()
 		if not title:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]