fix qr link

This commit is contained in:
Cayo Puigdefabregas 2022-08-22 12:29:08 +02:00
parent 95c3803752
commit 2224fb890f

View file

@ -167,7 +167,7 @@
<script src="{{ url_for('static', filename='js/print.pdf.js') }}"></script>
<script type="text/javascript">
{% for dev in devices %}
qr_draw("{{ url_for('inventory.device_details', id=dev.devicehub_id, _external=True) }}", "#{{ dev.devicehub_id }}")
qr_draw("{{ dev.public_link }}", "#{{ dev.devicehub_id }}")
{% endfor %}
</script>
{% endblock main %}