Converted states to lower before checking for membership in the set.

This commit is contained in:
Jeremy Fincher 2003-08-23 12:44:25 +00:00
parent 98011fe099
commit 5234c730c1

View File

@ -226,11 +226,11 @@ class Http(callbacks.Privmsg):
#['Liberal', 'KS']. We join it together with a + to pass #['Liberal', 'KS']. We join it together with a + to pass
#to our query #to our query
if len(zip) > 2: if len(zip) > 2:
city = '+'.join(zip[:-1]) city = '+'.join(zip[:-1]).lower()
isState = zip[-1] isState = zip[-1].lower()
else: else:
city = zip[0] city = zip[0].lower()
isState = zip[1] isState = zip[1].lower()
#We must break the States up into two sections. The US and #We must break the States up into two sections. The US and
#Canada are the only countries that require a State argument. #Canada are the only countries that require a State argument.