Skip to content

Fix README example and remove unused "import os" #76

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

Merged
merged 1 commit into from
Apr 6, 2025

Conversation

hannob
Copy link
Contributor

@hannob hannob commented Mar 30, 2025

The example code in the README no longer works with the latest version. A similar example in
https://github.com/pretix/python-drafthorse/blob/master/tests/conftest.py exists, and uses a Decimal for
doc.trade.settlement.monetary_summation.tax_total
instead of a tuple.
Change README example to do that as well.

Also, remove an unused import ("import os").

Bug: #66

The example code in the README no longer works with the latest version.
A similar example in
https://github.com/pretix/python-drafthorse/blob/master/tests/conftest.py
exists, and uses a Decimal for
doc.trade.settlement.monetary_summation.tax_total
instead of a tuple.
Change README example to do that as well.

Also, remove an unused import ("import os").

Bug: pretix#66
@raphaelm raphaelm merged commit 60822ef into pretix:master Apr 6, 2025
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

Successfully merging this pull request may close these issues.

2 participants