mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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
|
#['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.
|
||||||
|
Loading…
Reference in New Issue
Block a user