Skip to content

Commit 83de672

Browse files
committed
take barometics at different time
1 parent dcfaed3 commit 83de672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def params(tray):
3636
# This function generates an invoice through the LNbits API and returns only the Bolt11 invoice
3737
def get_invoice(params, headers, tray):
3838
try:
39-
t = get_barometrics()
4039
invoice_request = requests.post(url_base, json=params(tray), headers=headers)
4140
invoice_request.raise_for_status()
4241
global invoice
4342
invoice = invoice_request.json()
4443
logging.debug(f"{invoice}")
4544
logging.info(invoice["bolt11"])
45+
t = get_barometrics()
4646
make_qrcode(t, invoice)
4747
except Exception as e:
4848
logging.debug(f"ERROR {e}")

0 commit comments

Comments
 (0)