colonelpanic8 / okcupyd

A Library that enables programmatic interaction with okcupid.com, using okcupid.com's private okcupid JSON API and html scraping when necessary.
MIT License
110 stars 18 forks source link

Figure out a better way to manage passing the location cache to SearchFetchable #72

Open colonelpanic8 opened 8 years ago

colonelpanic8 commented 8 years ago

Currently the location_cache object is required to perform location searches. In order to avoid instantiating a bunch of these, it actually needs to be passed to the SearchFetchable in order for any location searches to function.

It might be better to automatically create a new one if none is provided. At the very least, an exception should occur if location is passed but no location cache is available.