Browse Source

Melhora definição do código de barras

pull/1652/head
VictorFabreF 7 years ago
parent
commit
e3607bba28
  1. 2
      sapl/materia/views.py

2
sapl/materia/views.py

@ -850,7 +850,7 @@ class ReciboProposicaoView(TemplateView):
_hash = 'P' + ta.hash() + '/' + str(proposicao.id) _hash = 'P' + ta.hash() + '/' + str(proposicao.id)
from sapl.utils import create_barcode from sapl.utils import create_barcode
base64_data = create_barcode(_hash, 100, 200) base64_data = create_barcode(_hash, 100, 500)
barcode = 'data:image/png;base64,{0}'.format(base64_data) barcode = 'data:image/png;base64,{0}'.format(base64_data)
context.update({'proposicao': proposicao, context.update({'proposicao': proposicao,

Loading…
Cancel
Save