]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commit
Fix README example and remove unused "import os" (#76)
authorHanno Böck <990588+hannob@users.noreply.github.com>
Sun, 6 Apr 2025 07:21:19 +0000 (09:21 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Apr 2025 07:21:19 +0000 (09:21 +0200)
commit60822efca1ce7e4b2a1c2d4f764ca5a5f2a59e18
tree9824143a2fbfddff4b2e2c1ae724d6b6cb9715c3
parenta62b2e86a84cbc78c2211fcaff975cd5e319394f
Fix README example and remove unused "import os" (#76)

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: https://github.com/pretix/python-drafthorse/issues/66
README.rst