[FIX] report_qr: New QR Library does not contain the old failure
parent
a6c38c5a0f
commit
68c6ddbc7c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue