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

pull/439/head
Enric Tobella 2020-10-09 10:23:13 +02:00
parent a0ee910582
commit ccb0f49e0a
1 changed files with 2 additions and 3 deletions

View File

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