Commits

Ada Young committed 07d002f

Better handling of partial orgnames! We're just that awesome ^^

  • Participants
  • Parent commits a8f7c52

Comments (0)

Files changed (1)

 		print("Oops, multiple organizations match the supplied input:")
 		for i in orgnames:
 			print(i[0])
+		for i in orgnames:
+			if i[0] == orgname:
+				print("Results for exact match [%s]" % i[0])
+				return i[0]
 	elif len(orgnames) < 1:
 		print("No matching organisations found :(")
 	else:
 
 	(opts, args) = parser.parse_args()
 
-	orgname = opts.orgname
+	orgname = opts.orgname.title()
 	fromdate = opts.fromdate
 	todate = opts.todate