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
The current tests for _.where() only test with a single key:value pair to filter by. I'm seeing behavior that looks like the function does not work properly if there are multiple key:value pairs. Specifically, it seems like the code will actually return True if the very first pair checked matches, rather than waiting for ALL of them to match.
Looking at the code, I believe the "return True" line merely needs to be unindented to be outside the "for key, value" loop, thus only returning successfully if all pairs match.
The text was updated successfully, but these errors were encountered:
The current tests for _.where() only test with a single key:value pair to filter by. I'm seeing behavior that looks like the function does not work properly if there are multiple key:value pairs. Specifically, it seems like the code will actually return True if the very first pair checked matches, rather than waiting for ALL of them to match.
Looking at the code, I believe the "return True" line merely needs to be unindented to be outside the "for key, value" loop, thus only returning successfully if all pairs match.
The text was updated successfully, but these errors were encountered: