diff options
-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" |