diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-03-06 12:13:14 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-03-06 12:13:14 +0100 |
commit | 9e3af96c01116ea1f10d0cca0953c808ae5eadca (patch) | |
tree | 03665c3142b9da6c65ec2f254b1a3adca2d39fc0 /todoist | |
parent | Provide new interface for --dump operation (diff) | |
download | todoist-9e3af96c01116ea1f10d0cca0953c808ae5eadca.tar.xz |
Diffstat (limited to 'todoist')
-rwxr-xr-x | todoist | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |