We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def reductions(entry): return [p for p in entry.postings if (p.cost and p.units.number and p.price)]
should be
def reductions(entry): return [p for p in entry.postings if (p.cost and p.units.number and p.price != None)]
or something like that (e.g. isinstance Amount). When price is 0, the if statement returns False.
The text was updated successfully, but these errors were encountered:
If you don't mind sending a PR with a unit test case, that'd make it a lot easier for me :)
Sorry, something went wrong.
No branches or pull requests
should be
or something like that (e.g. isinstance Amount). When price is 0, the if statement returns False.
The text was updated successfully, but these errors were encountered: