shibdib / Firetail

An EVE Online Discord Bot (Continuation of Dramiel)
MIT License
23 stars 22 forks source link

Correctly Reference Results Length #158

Closed scragly closed 5 years ago

scragly commented 5 years ago

Forgot to check length of results list within the category value, rather than the results dict length.

Previous, it would never check with strict parameter unless it had more than one category return, which we actually wanted when more than one value returned.

For good measure, skipped the unnecessary second strict request if force_strict flag was True, as the initial request would have been strict already, making the results exactly the same and a waste.