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

Fix error when query divides by 0 #2025

merged 1 commit into from Sep 4, 2016


None yet
2 participants

faubi commented Sep 4, 2016

Minor bug fix so that queries like #(tag1 / tag2 > tag3) won't throw an exception if tag2 is equal to 0. The value of the division by 0 expression is now ±infinify (depending on the sign of the divident) so that ratios like #(playcount / skipcount > 3) will work the same as #(playcount > 3*skipcount) even when skipcount is 0.

@lazka lazka merged commit ca55996 into quodlibet:master Sep 4, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@lazka lazka added this to the 3.7.1 milestone Sep 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment