[FIX] report_qr: New QR Library does not contain the old failure

pull/585/head
Enric Tobella 2020-10-09 10:23:13 +02:00 committed by Jasmin Solanki
parent a6c38c5a0f
commit 68c6ddbc7c
1 changed files with 2 additions and 3 deletions

View File

@ -17,9 +17,8 @@ class IrActionsReport(models.Model):
"svg-fragment": svg.SvgFragmentImage, "svg-fragment": svg.SvgFragmentImage,
"svg-path": svg.SvgPathImage, "svg-path": svg.SvgPathImage,
} }
# Color parameters seem to be inverted in the library back_color = kwargs.pop("back_color", "white")
back_color = kwargs.pop("back_color", "black") fill_color = kwargs.pop("fill_color", "black")
fill_color = kwargs.pop("fill_color", "white")
try: try:
# Defaults to png if the argument is unknown # Defaults to png if the argument is unknown
image_factory = factories.get(factory, pil.PilImage) image_factory = factories.get(factory, pil.PilImage)