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.
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.