aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtodoist4
1 files changed, 3 insertions, 1 deletions
diff --git a/todoist b/todoist
index e2ab94f..b247804 100755
--- a/todoist
+++ b/todoist
@@ -104,7 +104,9 @@ def build_collaborators_list(data):
def find_candidate(name, storage):
candidates = []
for k, v in storage.items():
- if k.find(name) != -1:
+ if name == k:
+ return v, None
+ elif k.find(name) != -1:
candidates.append((k, v))
if len(candidates) == 0:
return None, "No candidate found"