Made print outs bigger

This commit is contained in:
arcbtc
2020-08-10 19:44:55 +01:00
parent c56784340e
commit 97a13526d9
2 changed files with 6 additions and 7 deletions

View File

@@ -7,14 +7,13 @@
<page size="A4" id="pdfprint"> <page size="A4" id="pdfprint">
<table style="width: 100%;"> <table style="width: 100%;">
{% for threes in page %} {% for threes in page %}
<tr style="height: 37.125mm;"> <tr style="height: 59.4mm;">
{% for one in threes %} {% for one in threes %}
<td style="width: 52.5mm;"> <td style="width: 105mm;">
<center> <center>
<h3 class="q-mb-md"></h3>
<qrcode <qrcode
:value="theurl + '/lnurlwallet?lightning={{one.lnurl}}'" :value="theurl + '/lnurlwallet?lightning={{one.lnurl}}'"
:options="{width: 110}" :options="{width: 150}"
></qrcode> ></qrcode>
</center> </center>
</td> </td>
@@ -73,7 +72,7 @@
show: true, show: true,
data: null data: null
} }
}; }
} }
}) })
</script> </script>

View File

@@ -31,6 +31,6 @@ def print_qr(link_id):
for x in link.usescsv.split(","): for x in link.usescsv.split(","):
linkk = get_withdraw_link(link_id, x) or abort(HTTPStatus.NOT_FOUND, "Withdraw link does not exist.") linkk = get_withdraw_link(link_id, x) or abort(HTTPStatus.NOT_FOUND, "Withdraw link does not exist.")
links.append(linkk) links.append(linkk)
page_link = list(chunks(links, 4)) page_link = list(chunks(links, 2))
linked = list(chunks(page_link, 8)) linked = list(chunks(page_link, 5))
return render_template("withdraw/print_qr.html", link=linked, unique=True) return render_template("withdraw/print_qr.html", link=linked, unique=True)