mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Converted states to lower before checking for membership in the set.
This commit is contained in:
parent
98011fe099
commit
5234c730c1
@ -226,11 +226,11 @@ class Http(callbacks.Privmsg):
|
||||
#['Liberal', 'KS']. We join it together with a + to pass
|
||||
#to our query
|
||||
if len(zip) > 2:
|
||||
city = '+'.join(zip[:-1])
|
||||
isState = zip[-1]
|
||||
city = '+'.join(zip[:-1]).lower()
|
||||
isState = zip[-1].lower()
|
||||
else:
|
||||
city = zip[0]
|
||||
isState = zip[1]
|
||||
city = zip[0].lower()
|
||||
isState = zip[1].lower()
|
||||
|
||||
#We must break the States up into two sections. The US and
|
||||
#Canada are the only countries that require a State argument.
|
||||
|
Loading…
Reference in New Issue
Block a user