Maybe this breaks the qr code?

This commit is contained in:
Víðir Valberg Guðmundsson 2019-08-09 12:11:37 +02:00
parent e2404b1778
commit adee7c58c4

View file

@ -17,7 +17,7 @@ def qr_code(value):
return mark_safe( return mark_safe(
"<figure style='text-align: center;'>" "<figure style='text-align: center;'>"
"<figcaption style='text-align: center;'>{}</figcaption>"
'<img src="data:image/png;base64,{}" alt="">' '<img src="data:image/png;base64,{}" alt="">'
"<figcaption style='text-align: center;'>{}</figcaption>"
"</figure>".format(data.decode(), value) "</figure>".format(data.decode(), value)
) )