You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug when you are trying to search for the United States. This is caused by two things:
The dataset only contains the key US. When the API gets a country string, it looks up that country name in the JSON hash provided by HTTParty. This is why it fails on terms like United States, USA, etc.
The capitalize method here is changing US to Us. There is no Us key in the hash so we will not be able to find it.
The text was updated successfully, but these errors were encountered:
There is a bug when you are trying to search for the United States. This is caused by two things:
The dataset only contains the key
US
. When the API gets a country string, it looks up that country name in the JSON hash provided by HTTParty. This is why it fails on terms likeUnited States
,USA
, etc.The
capitalize
method here is changingUS
toUs
. There is noUs
key in the hash so we will not be able to find it.The text was updated successfully, but these errors were encountered: