Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush cache on function get_rows() #9

Open
Syrka opened this issue Mar 12, 2015 · 0 comments
Open

Flush cache on function get_rows() #9

Syrka opened this issue Mar 12, 2015 · 0 comments

Comments

@Syrka
Copy link

Syrka commented Mar 12, 2015

Function get_rows() without query param returns the right value, but if following you use get_rows(query='...'), with a query param, the result is wrong, and it returns the same as get_rows().

The problem is the condition if self.query is not None and self.query != new_query: in function get_rows(), because you have to do the _flush_cache()

I've just deleted self.query is not None, and now it works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant