Commits

Ada Young committed 7855339

Better partial orgname handling ^_^

Comments (0)

Files changed (2)

         Note("Oops, multiple organizations match the supplied input:")
         for i in orgnames:
             Note(i[0])
+        for i in orgnames:
+          if i[0] == orgname:
+            Note("Results for exact match [%s]" % i[0])
+            return i[0]
     elif len(orgnames) < 1:
         Note("No matching organisations found :(")
     else:
         Note("Oops, multiple organisations match the supplied input:")
         for i in orgnames:
             Note(i[0])
+        for i in orgnames:
+          if i[0] == orgname:
+            Note("Results for exact match [%s]" % i[0])
+            return i[0]
     elif len(orgnames) < 1:
         Note("No matching organisations found :(")
     else: